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

NAME

6       socket_remote4 - get remote IP address of socket
7

SYNTAX

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

DESCRIPTION

14       socket_remote4  returns  the  remote IP address and port for the UDP or
15       TCP socket s and writes the IP address to ip and the port to port.
16
17       If something goes  wrong,  socket_remote4  returns  -1,  setting  errno
18       appropriately.
19

SEE ALSO

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