public synchronized void addPacket(Packet packet) {
public synchronized void addPacket(SendPacket packet) {
        public synchronized void addPacket(Packet packet) {            queue.addElement(packet);            notifyAll();        }