Get the local address associated with a socket
#include <sys/dcmd_ip.h> #define DCMD_IP_GSRCADDR __DIOF(_DCMD_IP, 0x00, struct sockaddr)
Argument | Value |
---|---|
filedes | A descriptor for a socket. |
dcmd | DCMD_IP_GSRCADDR |
dev_data_ptr | A pointer to a struct sockaddr |
n_bytes | sizeof(struct sockaddr) |
dev_info_ptr | NULL |
This command gets the local address associated with a socket. Clients usually use getsockname() to generate this request.
None.
The socket address.
DCMD_IP_GDESTADDR, DCMD_IP_SDESTADDR, DCMD_IP_SSRCADDR
devctl(), getsockname() in the QNX Neutrino C Library Reference