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 |
|
Use the SENDTO command to send an outgoing message on a socket descriptor. This command differs from the SEND command in that it includes the destination address as a parameter. This command is used primarily to send data using connectionless protocols such as UDP or RAW. Use the SENDTO command to send datagrams on a UDP socket regardless of whether the socket is connected. Guidelines:
Format>>-SOCKET--(--"SENDTO"--,--socketid--,--data--,-----------------> >--+-----------+--,--name--)----------------------------------->< '-sendflags-' Parameters
Returned valueThe command returns a string that contains the return code and an integer that specifies the amount of data that was sent, for example, 0 192. The return code can be 0, a REXX socket API error number, or the REXX TCP/IP error number that is set by the socket command. The return code 0 indicates that the requested socket command was completed successfully. See Socket call error return codes for additional information about the numeric error codes that are returned by this command. The following REXX TCP/IP error numbers can be returned:
The following REXX socket API error numbers can be returned:
LE C/C++ equivalent
Code exampleSee RECVFROM for an example of using the SENDTO command. |
Copyright IBM Corporation 1990, 2014
|