SYNTAX

       #include "socket_if.h"

       int socket_udp4();
       int socket_udp6();
       int socket_udp();


DESCRIPTION

       socket_udp4 creates a non-blocking UDP/IPv4 datagram socket and
       providing a file descriptor pointing to that socket.

       socket_udp6 creates a non-blocking UDP/IPv6 datagram socket and
       providing a file descriptor pointing to that socket.

       socket_udp creates a non-blocking IPv6 UDP socket calling socket_udp6
       unless ipv4socket=1, now employing socket_udp4.


REMOTE CODES

       All these routines return 0 except in case of failures, returning -1
       and setting errno appropriately, without allocating any resources.


EXAMPLE

         #include <socket_if.h>

         ipv4socket = ip6_isv4mapped(ip);

         u = socket_udp();
         socket_bind(u,localip,p);
         socket_connect(u,remoteip,p,0);


SEE ALSO

       socket_if(3), socket_bind(3), socket_connect(3), socket_info(3),
       socket_recv(3), socket_send(3), socket_setup(3), socket_tcp(3)



                                       3                    qlibs:(socket_udp)

Man(1) output converted with man2html