Hi, I ame trying to do some network communication and I don't understand one thing. How am I actually supposed to use the waitForNextConnection () method. I was trying hard to find anything on the topic but with no luck. Everybody seems to discuss UDP stream here. Does anybody even use the StreamingSocket?
The thing is I would understand this declaration:
StreamingSocket * waitForNextConnection (int timeoutMsecs) const
but what how exactly am I supposed to use this:
StreamingSocket * waitForNextConnection () const
Calling the waitForNextConnection() blocks until some connection is estabilished. The obvious problem is, what if no connection is ever made? Even if I move it to a separate thread (which I did), the function blocks until, well, forever. And I have no way of exiting the thread cleanly.
What am I missing?
By the way, I know about InterprocessConnection, but I cannot use it (I think) as there is not going to be JUCE application on the other end in the future.