Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
SENDTO z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|||||||||||||||||
SENDTO is similar to SEND, except that it includes the destination address parameter. The destination address allows you to use the SENDTO call to send datagrams on a UDP socket, regardless of whether the socket is connected. The FLAGS parameter allows you to:
For datagram sockets, SENDTO transmits the entire datagram if it fits into the receiving buffer. Extra data is discarded. For stream sockets, data is processed as streams of information
with no boundaries separating the data. For example, if a program
is required to send 1000 bytes, each call to this function can send
any number of bytes, up to the entire 1000 bytes, with the number
of bytes sent returned in RETCODE. Therefore, programs using stream
sockets should place SENDTO in a loop that repeats the call until
all data has been sent.
Note: See EZACIC04 for a subroutine that will translate EBCDIC input data to ASCII.
The following requirements apply to this call:
Figure 1 shows an example of SENDTO call instructions. Figure 1. SENDTO call instruction
example
For equivalent PL/I and assembler language declarations, see Converting parameter descriptions. |
Copyright IBM Corporation 1990, 2014
|