TCP/IP Programming Manual

sendto64_
The sendto64_ function sends data on an unconnected UDP socket or raw socket for waited
operations.
C Synopsis
#include <socket.h>
#include <netdb.h>
nsent = sendto64_ (socket, buffer_ptr64, buffer_length, flags, sockaddr_ptr64, sockaddr_len);
int nsent, socket;
char _ptr64 *buffer_ptr64;
int buffer_length, flags, sockaddr_len ;
struck sockaddr _ptr64 *sockaddr_ptr64;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
nsent := sendto64_ (socket, buffer_ptr64, buffer_length, flags,
sockaddr_ptr64, sockaddr_length);
INT(32) socket,
buffer_length,
flags,
sockaddr_length;
STRING .EXT64 buffer_ptr64;
INT .EXT64 sockaddr_ptr64(sockaddr);
nsent
return value; the number of bytes sent. If this number is less than length, the operation must
be retried with the remaining data.
If the call is not successful, –1 is returned and the external variable errno is set as shown in
Errors (page 180).
socket
input value; specifies the socket number for the socket, as returned by the call to socket.
buffer_ptr64
input value; points to the data to be sent.
buffer_length
input value; the size of the buffer that buffer_ptr64 points to.
flags
input value; specifies whether the outgoing data should be sent to the destination if routing is
required. This parameter can be one of the following messages:
Send this message only if the destination is located on the local network; do not send
the message through a gateway.
MSG_DONTROUTE
No flag; send the message to the destination, even if the message must be routed.0
sockaddr_ptr64
input value; contains the remote address and port number to which the data is sent.
sockaddr_len
input value; the size in bytes of sockaddr_ptr64.
sendto64_ 179