Socket: Allow Writing and Receiving on the same socket
Posted on 2007-04-06
After accept the socket Socket socket = serverSocket.accept() in a object
How can I achieve the followings simutaneously?
1) non-stop monitoring socket for incoming message, received message have to pass to outer object
2) allow other objects to send message?
It seems to me that something called "callback" interface has to be implemented, I am looking for sample codes of this... and explanations...