Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using sendto() and recvfrom() calls z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
If the socket is not in
a connected state, additional address information must be passed to
sendto() and can be (optionally) returned from recvfrom(). An example
of the sendto() and recvfrom() calls is listed in Figure 1:
Figure 1. An application using the sendto() and recvfrom() Calls
The sendto() and recvfrom() calls take additional parameters
to allow the caller to specify the recipient of the data, or to be
notified of the sender of the data. See recvfrom(), sendmsg(), and sendto() for
more information about these additional parameters. Usually, sendto()
and recvfrom() are used for datagram sockets, and send() and recv()
are used for stream sockets.
|
Copyright IBM Corporation 1990, 2014
|