Read mode
|
With a timeout value
|
Without a timeout value
|
READ-AVAILABLE
|
Assuming there are no connection failures, READ() blocks until one of the following occurs:
The timeout expires
There is at least one byte available to read on the socket
|
Assuming there are no connection failures, READ() blocks until there is at least one byte available to read on the socket
|
READ-EXACT-NUM
|
Assuming there are no connection failures:
If there is any data on the socket, READ() blocks until there are bytes-to-read bytes available to read on the socket
Else, READ() blocks until the timeout expires
|
Assuming there are no connection failures, READ() blocks until there are bytes-to-read bytes available to read on the socket
|