1socket_local4(3) Library Functions Manual socket_local4(3)
23
4
NAME
6socket_local4 - get local IP address of socket
7
SYNTAX
9#include <socket.h>
1011
int socket_local4(int s,char ip[4],uint16 *port);
12
DESCRIPTION
14socket_local4 returns the local IP address and port for the UDP or TCP
15socket s and writes the IP address to ip and the port to port.
1617
If something goes wrong, socket_local4 returns -1, setting errno appro‐
18priately.
19
SEE ALSO
21socket_accept4(3), socket_remote4(3)
2223
24
25
socket_local4(3)