public void sendPacket(Object o) throws IOException {
        //System.out.println("Server Sending Data: " + o + "(" + address.toString() + ":" + port + ")");
        try {
            ByteArrayOutputStream byteStream = new ByteArrayOutputStream(5000);
            ObjectOutputStream os = new ObjectOutputStream(new BufferedOutputStream(byteStream));

            os.flush();
            os.writeObject(o);
            os.flush();

            byte[] sendBuf = byteStream.toByteArray();
            DatagramPacket packet = new DatagramPacket(sendBuf, sendBuf.length, address, port);
            //int byteCount = packet.getLength();
            //System.out.println(byteCount);
            socket.send(packet);
            os.close();
        } catch (Exception e) {
            EIError.debugMsg("Network Error: " + e.getMessage());
        }
    }