DCMD_IP_SSRCADDR
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Set the local address to associate with a socket
Synopsis:
#include <sys/dcmd_ip.h>
#define DCMD_IP_SSRCADDR __DIOT(_DCMD_IP, 0x01, struct sockaddr)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A descriptor for a socket. |
dcmd | DCMD_IP_SSRCADDR |
dev_data_ptr | A pointer to a struct sockaddr |
n_bytes | sizeof(struct sockaddr) |
dev_info_ptr | NULL |
Description:
This command sets the local address to associate with a socket. Clients usually use bind() to generate this request.
Input:
A struct sockaddr that specifies the address.
Output:
None.
See also:
DCMD_IP_GDESTADDR, DCMD_IP_GSRCADDR, DCMD_IP_SDESTADDR
devctl() in the QNX OS C Library Reference
bind() in the QNX OS C Library Reference, B page
Page updated: