1socket_udp6(3) Library Functions Manual socket_udp6(3)
2
3
4
6 socket_udp6 - create a non-blocking IPv6 UDP/IP datagram socket
7
9 #include <socket.h>
10
11 int socket_udp6();
12
14 socket_udp6 creates a non-blocking UDP/IP datagram socket and returns a
15 file descriptor pointing to that socket. If something goes wrong,
16 socket_udp6 returns -1, setting errno appropriately, without allocating
17 any resources.
18
19
21 #include <socket.h>
22
23 int s;
24 char ip[16];
25 uint16 p;
26
27 s = socket_udp6();
28 socket_bind6(s,ip,p);
29 socket_connect6(s,ip,p);
30
31
33 socket_bind4(3), socket_bind6(3)
34
35
36
37 socket_udp6(3)