1socket_local6(3) Library Functions Manual socket_local6(3)
2
3
4
6 socket_local6 - get local IP address of socket
7
9 #include <socket.h>
10
11 int socket_local6(int s,char ip[16],uint16 *port,uint32 *scope_id);
12
14 socket_local6 returns the local IPv6 address, port and scope ID for the
15 UDP or TCP socket s and writes the IPv6 address to ip, the port to port
16 and the scope ID to scope_id.
17
18 If scope_id is the null pointer, socket_local6 will discard the scope
19 ID.
20
21 If something goes wrong, socket_local6 returns -1, setting errno appro‐
22 priately.
23
25 socket_accept6(3), socket_remote6(3)
26
27
28
29 socket_local6(3)