connection.send(packet);
debugLastFewCommandsSent.push(packet.getCommand()); packet.zipData(); try { if (out == null) { out = new ObjectOutputStream(socket.getOutputStream()); out.flush(); } out.reset(); out.writeObject(packet); out.flush();  } catch (IOException ex) { System.err.println("c: error sending command #" + packet.getCommand() + ": " + ex.getMessage()); System.err.println("    Last five commands that were sent (oldest first): " + debugLastFewCommandsSent.print()); }
    protected void send(Packet packet) {        connection.send(packet);    }