TCP/IP Programming Manual
error := send_nw2_64_ (socket, nbuffer_ptr64, nbuffer_length,
flags, tag);
INT(32) error,
socket;
STRING .EXT64 nbuffer_ptr64;
INT(32) nbuffer_length,
flags;
INT(64) tag;
error
return value; if the call is successful, a zero is returned. If the call is not successful, –1 is returned.
If the call fails, the external variable errno is set as shown in Errors (page 176).
socket
input value; specifies the socket number for the socket, as returned by the call to socket_nw.
nbuffer_ptr64
input value; specifies the data to be sent. Call FILE_AWAITIO64_ to complete the
send_nw2_64_ call.
nbuffer_length
input value; the size of the buffer pointed to by nbuffer_ptr64.
flags
input value; specifies the kind of data to be sent, or specifies a routing restriction. flags has
one of the following values:
Send this message only if the destination is located on the local network; do not send
the message through a gateway.
MSG_DONTROUTE
Send the data as out-of-band data. This corresponds to the TCP URG flag.MSG_OOB
Send normal data.0
tag
is the tag parameter to be used for the nowait operation initiated by send_nw2_64_.
Errors
If an error occurs, the external variable errno is set to one of the following values:
The send buffer is already full.EALREADY
The message was too large to be sent atomically, as required by the socket options.EMSGSIZE
The specified socket was not connected.ENOTCONN
The specified socket was shut down.ESHUTDOWN
The connection timed out.ETIMEDOUT
The connection was reset by the remote host.ECONNRESET
An invalid flags value was specified.EINVAL
There is out-of-band data pending. This must be cleared with a call to recv_nw64_ with
the MSG_OOB flag set.
EHAVEOOB
176 Library Routines