protected void sendCommand(Command cmd) throws IOException {
   if (T.t) {
     T.debug("Sending command: " + cmd);
   }
   Packet p = netMan.createPacketForSend();
   p.writeByte(cmd.value());
   send(p);
 }