SocketReadyQ
SocketReadyQ[socket] tests if there is any data immediately available to read from the specified socket.
SocketReadyQ[socket,t] waits for up to t seconds to see if data becomes available to read.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.