A new socket implementation / api
Alan Bateman
Alan.Bateman at oracle.com
Thu Aug 25 07:57:44 PDT 2011
Noctarius wrote:
> :
> What does it mean?
> Well you create a ServerSocket and tell him to listen for incoming
> client request (bind()). At the other side you open a ClientSocket
> to connect to the already opened server.
> Now you can give both sockets a listener to retrieve events like
> "clientConnected", "clientDisconnected", "dataReceived", ... by
> adding such a listener with "listen(...)".
>
Have you looked at the asynchronous I/O API that is in jdk7.
-Alan.
More information about the nio-discuss
mailing list