I got an Object which I want to send over a Socket. For the Ouput I got:
Socket s = serverSocket.accept();
ObjectOutputStream dout = new ObjectOutputStream(new GZIPOutputStream(s.getOutputStream()));
Msg m = new Msg("123", "123", karte);
dout.writeObject(m);
dout.reset(); //No I don't want to chache it
and for the Input I got:
Socket s = new Socket(host, port);
ObjectInputStream din = new ObjectInputStream(new GZIPInputStream(s.getInputStream()));
Msg m = (Msg)din.readObject();
the Msg Object is Serializeable.
If I run this code, I get an Client connect, the Server also sends data, but the client never starts to read the input
any suggestions?
Thanks for all replys