Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
UdpReceive z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
The procedure shown in Figure 1 notifies the TCP/IP address space that you are willing to receive UDP datagram data. UdpReceive is for compatibility with old programs only. New programs should use the UdpNReceive procedure, which allows you to specify the size of your buffer. If you use UdpReceive, TCP/IP can put a datagram as large
as 2012 bytes in your buffer. If a larger datagram is sent to your
port when UdpReceive is pending, the datagram is discarded without
notification.
Note: No data is transferred from the TCP/IP address
space in this call. It only tells TCP/IP that you are waiting for
a datagram. Data has been transferred when a UDPdatagramDELIVERED
notification is received.
Figure 1. UdpReceive example
For a description of Pascal return codes, see Table 1. |
Copyright IBM Corporation 1990, 2014
|