Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Write operations z/OS Communications Server: IP IMS Sockets Guide SC27-3653-00 |
|
A socket is selected for writing (ready to be written) when:
A call to WRITE, SEND, or SENDTO blocks when the amount of data to be sent exceeds the amount of data TCP/IP can accept. To avoid this, you can precede the write operation with a SELECT call to ensure that the socket is ready for writing. Once a socket is selected for WRITE, the program can determine the amount of TCP/IP buffer space available by issuing the GETSOCKOPT call with the SO-SNDBUF option. To test whether any of several sockets is ready for writing, set the WSNDMSK bits representing those sockets to 1 before issuing the SELECT call. When the SELECT call returns, the corresponding bits in the WRETMSK indicate sockets are ready for writing. |
Copyright IBM Corporation 1990, 2014
|