// ByteBuffer bb = ByteBuffer.allocate(command.length() * CHAR_SIZE + INT_SIZE);
// bb.putInt(command.length()).asCharBuffer().append(command);
// socket.getChannel().send(bb, socket.getRemoteSocketAddress());
} catch (SocketTimeoutException e) {
throw new TimeoutException("timeout in receive", e);
} catch (IOException e) {
throw new ProtocolException("error in receive", e);
}
}