IPX/SPX Programming Manual

Library Routines
HP NonStop IPX/SPX Programming Manual528022-001
5-46
sendto
flags
flags is not used; it must be set to zero.
sockaddr_ptr
points to the IPX address data structure to which the data is sent.
sockaddr_length
is maintained only for compatibility and should be a value indicating the size, in
bytes, of the IPX address data structure pointed to by sockaddr_ptr.
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 waited call; your program pauses until the operation is complete.
Example
For an example that calls sendto, see Client and Server Programs Using IPX on
page 6-9.
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.