When juce support network non-blocking program?

Hi,
I want to develp a program only depends Juce.
After I read juce api doc, the network class doesn’t not support non-blocking program,
just like Selector class in Java.nio.
I expect juce can add this feature in the future. :slight_smile:
Thanks

You can use boost::asio for now. Implementing a non blocking network API is rather non-trivial and is almost a mini-framework in and of itself.

[quote=“boltdog”]Hi,
I want to develp a program only depends Juce.
After I read juce api doc, the network class doesn’t not support non-blocking program,
Thanks[/quote]

What do you think “waitUntilReady” is for?
It selects on the socket for ever writing or reading for the given amount of time.

boost::asio is good,but i don’t like its code style and its document is awesome. :smiley:

“waitUntilReady” is one method of StreamingSocket class.
But it’s one to one relationship between StreamingSocket object and select, actually
I want to monitor multiple StreamingSocket objects at one time, so I can avoid
two many threads to listen data receiving.
Thanks.