Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (s and S) spt_sendtox(2)
NAME
spt_sendtox - Sends a message on a socket (thread-aware version)
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series and J series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
[#include <sys/socket.h>]
#include <spthread.h>
ssize_t spt_sendtox(
int socket,
const void *message,
size_t length,
int flags,
const struct sockaddr *dest_addr,
size_t dest_len
);
PARAMETERS
socket Specifies the file descriptor of the socket.
message Points to the buffer containing the message to be sent.
length Specifies the length in bytes of the message to be sent.
flags Is a value that controls message transmission. The value of the flags parameter
is formed by bitwise ORing zero or more of the following values:
MSG_DONTROUTE
Sends without using routing tables. (Not recommended; use for
debugging only.)
MSG_OOB Sends out-of-band data on sockets that support out-of-band com-
munications.
dest_addr Points to a sockaddr structure that contains the destination address. The length
and format of the address depends on the address family of the socket. For:
AF_INET sockets
A pointer to the address structure sockaddr_in must be cast as a
struct sockaddr.
AF_INET6 sockets
A pointer to the address structure sockaddr_in6 must be cast as
a struct sockaddr.
AF_UNIX sockets
A pointer to the address structure sockaddr_un must be cast as a
struct sockaddr.
dest_len Specifies the length of the sockaddr structure pointed to by the dest_addr
parameter.
527186-023 Hewlett-Packard Company 7403