Provided by: manpages-zh_1.5.2-1_all bug

NAME ()

       udp - IPv4  UDP .

SYNOPSIS ()

       #include <sys/socket.h>
       #include <netinet/in.h>
       udp_socket = socket(PF_INET, SOCK_DGRAM, 0);

DESCRIPTION()

        RFC768 .  , .  .  UDP .

         UDP  ,  .   sendto(2) sendmsg(2) .  connect(2) , , send(2) write(2) .
       sendto(2) sendmsg(2) .  , bind(2) , , .

       .  , , , MSG_TRUNC .

       IP ip(7) .   sysctl , (, ).  ip(7).

        MSG_DONTROUTE ,, .

        UDP  MTU(Maximum Transmission Unit ), UDP .   path MTU discovery(MTU),
       ip(7) IP_PMTU_DISCOVER .

ADDRESS FORMAT ()

       UDP  IPv4 sockaddr_in , ip(7) .

ERROR HANDLING ()

       , .  BSD , , , Linux RFC1122 .

       , SO_BSDCOMPAT SOL_SOCKET ( EPROTO EMSGSIZE) .  , .  .

        IP_RECVERR , , MSG_ERRQUEUE recvmsg(2) .

ERRORS ()

        socket(7) ip(7)  UDP .

       ECONNREFUSED .  .

VERSIONS()

       IP_RECVERR  Linux 2.2 .

CREDITS()

        Andi Kleen.

SEE ALSO()

       ip(7), socket(7), raw(7).

       RFC768: .
       RFC1122:
       RFC1191:  path MTU discovery (MTU).

[]

       riser <boomer@ccidnet.com>

[]

       2001/07/19

linuxman:

       http://cmpp.linuxforum.net