private Command readAsciiCommand() throws IOException {
    SocketChannel channel = socket.getChannel();
    if (channel == null || !channel.isOpen()) {
      throw new IllegalStateException("cannot read from channel");
    }
    buffer.clear();
    int bytesRead = channel.read(buffer);
    if (bytesRead == -1) {
      throw new IOException("EOF");
    }
    buffer.flip();
    return Command.valueOf(readCommand(buffer));
  }
Reads the first line from the request and interprets the {@link Command} from the memcached
client
geode-memcached/src/main/java/org/apache/geode/internal/memcached/RequestReader.java