TCP/IP Programming Manual
tag);
int error, socket;
char _ptr64 *nbuffer_ptr64;
int nbuffer_length, flags;
long long tag;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
error := send_nw64_ (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 173).
socket
input value; specifies the socket number for the socket, as returned by the call to socket_nw.
nbuffer_ptr64
input value; points to the element nb_data[0] in the following structure:
struct send_nw_str {
int nb_sent;
char nb_data[1];
};
The TAL structure is:
struct send_nw_str (*);
begin
INT nb_sent;
STRING nb_data[0:1];
end;
This structure is used by many function calls. Copy the data returned by nbuffer_ptr64
before issuing another function call that uses nbuffer_ptr64. This structure is provided in
the netdb.h header file.
nbuffer_length
input value; the size of the buffer that nbuffer_ptr64 points to.
flags
input value; specifies the type 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
input value; the tag parameter to be used for the nowait operation initiated by send_nw64_.
For more information, see Asynchrony and Nowaited Operations (page 34).
172 Library Routines