IPX/SPX Programming Manual
Library Routines
HP NonStop IPX/SPX Programming Manual—528022-001
5-45
sendto
sendto
The sendto function sends data on an unconnected IPX socket created for waited
operations.
nsent
is the number of bytes sent. This is the return value. If this number is less than
length, the operation should be retried with the remaining data.
If the call is not successful, -1 is returned and the external variable errno is set as
indicated below in “Errors.”
socket
specifies the socket number for the socket, as returned by the call to the socket
function.
buffer_ptr
points to the data to be sent.
buffer_length
is the size of the buffer pointed to by buffer_ptr.
C Synopsis
#include <socket.h>
#include <nv.h>
#include <netdb.h>
nsent = sendto (socket, buffer_ptr, buffer_length, flags,
sockaddr_ptr, sockaddr_length);
int nsent, socket, buffer_length, sockaddr_length,
flags;
char *buffer_ptr;
struct sockaddr *sockaddr_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
nsent := sendto (socket, buffer_ptr, buffer_length, flags,
sockaddr_ptr, sockaddr_length);
INT socket,
buffer_length,
flags;
sockaddr_length,
STRING .EXT buffer_ptr;
INT .EXT sockaddr_ptr(sockaddr);