• Post Reply Bookmark Topic Watch Topic
  • New Topic

any socket listener that will tell me that data is arrive?  RSS feed

 
Pramod P Deore
Ranch Hand
Posts: 633
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am continuously receiving data through socket. Is there is any listener that will tell me that data is arrived? I had searched it but didn't found any well example. If there is any tutorial then please provide me a link. Thanks in advance.
 
Chris Beckey
Ranch Hand
Posts: 116
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few more details please.
ServerSocket.receive() will wait for input, java.nio.channels.SocketChannel can be used for asynchronous servicing of socket input when data is available.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!