IPX/SPX Programming Manual

Library Routines
HP NonStop IPX/SPX Programming Manual528022-001
5-40
send
send
The send function sends data on a connected socket.
nsent
specifies the number of bytes sent. This is the return value.
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 socket.
buffer_ptr
points to the data to be sent.
buffer_length
is the size of the buffer pointed to by buffer_ptr.
flags
It is not used. It must be set to zero.
C Synopsis
#include <socket.h>
#include <nv.h>
#include <netdb.h>
nsent = send (socket, buffer_ptr, buffer_length, flags);
int nsent, socket, buffer_length, flags;
char *buffer_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
nsent := send (socket, buffer_ptr, buffer_length, flags);
INT socket,
buffer_length,
flags;
STRING .EXT buffer_ptr;