DCMD_IP_SSRCADDR

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

bind(), devctl() in the QNX Neutrino C Library Reference