Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Java network loop
Java network loop [message #1691331] Mon, 06 April 2015 06:03 Go to next message
Marcus Hellberg is currently offline Marcus HellbergFriend
Messages: 1
Registered: April 2015
Junior Member
I'm creating a standalone java MQTT client that would need a similar functionality loop_forever() in the Python client to monitor the network and trigger any callbacks. What's the best way of accomplishing this with the Java client?
Re: Java network loop [message #1692240 is a reply to message #1691331] Tue, 14 April 2015 13:33 Go to previous messageGo to next message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 56
Registered: March 2013
Member
H Marcus,

both Java clients (synchronous and asynchronous) automatically create the necessary background threads to deal with network traffic and trigger callbacks. They implicitly implement loop_forever(), if you like.

Ian
Re: Java network loop [message #1692241 is a reply to message #1691331] Tue, 14 April 2015 13:34 Go to previous message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 56
Registered: March 2013
Member
Slow response caused me to hit enter twice Very Happy

[Updated on: Tue, 14 April 2015 13:36]

Report message to a moderator

Previous Topic:Cordova + Phonegap
Next Topic:Paho application with java fx
Goto Forum:
  


Current Time: Wed Sep 19 06:40:37 GMT 2018

Powered by FUDForum. Page generated in 0.02555 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top