Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
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.
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!