K
Ken Adams
Basically I have a client/server system and I implement the following ocde
to set up the streams on both the client and the server.
I seem to have deadlock when program execution enters this area. How to I
stop the deadlock between the client and server?
Thanks
Socket socket = new Socket(hostName, port);
ObjectInputStrem inStream = new ObjectInputStream(new
BufferedInputStream(socket.getInputStream()));
ObjectOutputStream outStream = new ObjectOutputStream(new
BufferedOutputStream(socket.getOutputStream()));
to set up the streams on both the client and the server.
I seem to have deadlock when program execution enters this area. How to I
stop the deadlock between the client and server?
Thanks
Socket socket = new Socket(hostName, port);
ObjectInputStrem inStream = new ObjectInputStream(new
BufferedInputStream(socket.getInputStream()));
ObjectOutputStream outStream = new ObjectOutputStream(new
BufferedOutputStream(socket.getOutputStream()));