SocketWaitAll
SocketWaitAll[{socket1,socket2,…}]
waits until there is data ready to read on all of the socketi.
Details
- The socketi are specified as SocketObject[…].
- SocketWaitAll[{socket1,socket2,…}] returns {socket1,socket2,…}.
Examples
Basic Examples (2)
Connect to a site 5 times and measure how long it takes for all connections to be ready:
Write a request out on all the sockets and measure how long it takes for all of them to get back a request:
Open a server socket and connect some clients to it:
Initially, none of the clients are ready:
Write data to each of the clients from the server in the local session after a delay:
Read the data sent to the clients once it has been submitted:
Text
Wolfram Research (2017), SocketWaitAll, Wolfram Language function, https://reference.wolfram.com/language/ref/SocketWaitAll.html.
CMS
Wolfram Language. 2017. "SocketWaitAll." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SocketWaitAll.html.
APA
Wolfram Language. (2017). SocketWaitAll. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SocketWaitAll.html