/**
  * This is the override of super method.
  *
  * @see
  *     org.apache.niolex.network.rpc.cli.RemoteInvoker#invoke(org.apache.niolex.network.PacketData)
  */
 @Override
 public synchronized PacketData invoke(PacketData packet) {
   this.res = null;
   // SocketClient will handle read in this method.
   sc.setAutoRead(true);
   sc.handleWrite(packet);
   return res;
 }
 /**
  * This is the override of super method.
  *
  * @see
  *     org.apache.niolex.network.rpc.cli.RemoteInvoker#sendPacket(org.apache.niolex.network.PacketData)
  */
 @Override
 public synchronized void sendPacket(PacketData packet) {
   // Do not auto read.
   sc.setAutoRead(false);
   sc.handleWrite(packet);
 }