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

NAME

6       socket_local4 - get local IP address of socket
7

SYNTAX

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

DESCRIPTION

14       socket_local4  returns the local IP address and port for the UDP or TCP
15       socket s and writes the IP address to ip and the port to port.
16
17       If something goes wrong, socket_local4 returns -1, setting errno appro‐
18       priately.
19

SEE ALSO

21       socket_accept4(3), socket_remote4(3)
22
23
24
25                                                              socket_local4(3)
Impressum