IPX/SPX Programming Manual
Library Routines
HP NonStop IPX/SPX Programming Manual—528022-001
5-48
sendto_nw
flags
specifies whether the outgoing data should be sent to the destination if routing is
required. This parameter can be one of the following messages:
sockaddr_ptr
points to the remote address and port number to which the data is to be sent. (See
sockaddr on page 4-4 and sockaddr_nv on page 4-7 descriptions.)
sockaddr_length
specifies the length of the sockaddr structure.
tag
is the tag parameter to be used for the nowait operation initiated by sendto_nw.
Errors
If an error occurs, the return value is set to -1 and the external variable errno is set to
one of the following values:
Usage Guidelines
•
This is a nowait call; it must be completed with a call to the AWAITIOX procedure.
For a waited call, use sendto.
•
Note parameters of the sendto_nw function are not compatible with those of the
sendto function in the 4.3 BSD UNIX operating system.
•
To determine the number of bytes transferred as a result of the sendto_nw
function, use the socket_get_len function.
For information on error checking, see Nowait Call Errors on page 5-5.
MSG_DONTROUTE Send this message only if the destination is located on the
local network; do not send the message through a
gateway.
0 No flag; send the message to the destination, even if the
message must be routed.
EMSGSIZE The message was too large to be sent atomically, as
required by the socket options.
EISCONN The specified socket was connected.
ESHUTDOWN The specified socket was shut down.
ENETUNREACH The destination network was unreachable.
EINVAL An invalid argument was specified.