1socket_remote6(3)          Library Functions Manual          socket_remote6(3)
2
3
4

NAME

6       socket_remote6 - get remote IP address of socket
7

SYNTAX

9       #include <socket.h>
10
11       int socket_remote6(int s,char ip[16],uint16 *port,uint32 *scope_id);
12

DESCRIPTION

14       socket_remote6  returns  the remote IPv6 address, port and scope ID for
15       the UDP or TCP socket s and writes the IPv6 address to ip, the port  to
16       port and the scope ID to scope_id.
17
18       If  scope_id is the null pointer, socket_remote6 will discard the scope
19       ID.
20
21       If something goes  wrong,  socket_remote6  returns  -1,  setting  errno
22       appropriately.
23

SEE ALSO

25       socket_accept6(3), socket_local6(3)
26
27
28
29                                                             socket_remote6(3)
Impressum