TCP/IP Programming Manual

flags
input value; specifies the type of data to be sent, or specifies a routing restriction. flags has
one of the following values:
Send the 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 the message to the destination. If needed, route the message.0
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
There is out-of-band data pending. This must be cleared with a call to recv_nw64_ with
the MSG_OOB flag set.
EHAVEOOB
Usage Guidelines
For information on checking errors, see Nowait Call Errors (page 86).
Example
The following programming example calls the send64_ function. (In the example, rsock is a
socket created by a previous call to socket) .
#include <socket.h>
#include <netdb.h>
...
int status, tosend;
char buffer [8*1024];
...
tosend = sizeof(buffer);
status = send64_(rsock, (char _ptr64*)&buffer[0], tosend, 0);
send_nw
The send_nw function sends data on a connected socket. send_nw is a nowait operation.
C Synopsis
#include <socket.h>
#include <netdb.h>
error = send_nw (socket, nbuffer_ptr, nbuffer_length, flags,
tag);
int error, socket;
char *nbuffer_ptr;
int nbuffer_length, flags;
long tag;
send_nw 169