home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat7 / udp.z / udp
Encoding:
Text File  |  2002-10-03  |  3.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UUUUDDDDPPPP((((7777PPPP))))                                                                UUUUDDDDPPPP((((7777PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      udp - Internet User Datagram Protocol
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssoooocccckkkkeeeetttt....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<nnnneeeettttiiiinnnneeeetttt////iiiinnnn....hhhh>>>>
  14.  
  15.      ssss ==== ssssoooocccckkkkeeeetttt((((AAAAFFFF____IIIINNNNEEEETTTT,,,, SSSSOOOOCCCCKKKK____DDDDGGGGRRRRAAAAMMMM,,,, 0000))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      UDP is a simple, unreliable datagram protocol which is used to support
  19.      the SOCK_DGRAM abstraction for the Internet protocol family.  UDP sockets
  20.      are connectionless, and are normally used with the _s_e_n_d_t_o and _r_e_c_v_f_r_o_m
  21.      calls, though the _c_o_n_n_e_c_t(2) call may also be used to fix the destination
  22.      for future packets (in which case the _r_e_c_v(2) or _r_e_a_d(2) and _s_e_n_d(2) or
  23.      _w_r_i_t_e(_2) system calls may be used).
  24.  
  25.      UDP address formats are identical to those used by TCP. In particular UDP
  26.      provides a port identifier in addition to the normal Internet address
  27.      format.  Note that the UDP port space is separate from the TCP port space
  28.      (i.e., a UDP port may not be "connected" to a TCP port).
  29.  
  30.      When binding a UDP socket, if the local port is unspecified (i.e., set to
  31.      0), the system will choose an appropriate port number for it.  In
  32.      addition broadcast packets may be sent (assuming the underlying network
  33.      supports this) by using a reserved "broadcast address"; this address is
  34.      network interface dependent.
  35.  
  36.      Options at the IP transport level may be used with UDP; see _i_p(7P).
  37.  
  38. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  39.      A socket operation may fail with one of the following errors returned:
  40.  
  41.      [EISCONN]      when trying to establish a connection on a socket which
  42.                     already has one, or when trying to send a datagram with
  43.                     the destination address specified and the socket is
  44.                     already connected;
  45.  
  46.      [ENOTCONN]     when trying to send a datagram, but no destination address
  47.                     is specified, and the socket hasn't been connected;
  48.  
  49.      [ENOBUFS]      when the system runs out of memory for an internal data
  50.                     structure;
  51.  
  52.      [EADDRINUSE]   when an attempt is made to create a socket with a port
  53.                     which has already been allocated;
  54.  
  55.      [EADDRNOTAVAIL]
  56.                     when an attempt is made to create a socket with a network
  57.                     address for which no network interface exists.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UUUUDDDDPPPP((((7777PPPP))))                                                                UUUUDDDDPPPP((((7777PPPP))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      getsockopt(2), recv(2), send(2), socket(2), intro(3), inet(7F), ip(7P),
  76.      tcp(7P)
  77.      _I_R_I_X _N_e_t_w_o_r_k _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.