home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / socketpair.z / socketpair
Encoding:
Text File  |  2002-10-03  |  2.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSOOOOCCCCKKKKEEEETTTTPPPPAAAAIIIIRRRR((((2222))))                                                    SSSSOOOOCCCCKKKKEEEETTTTPPPPAAAAIIIIRRRR((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      socketpair - create a pair of connected sockets
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssoooocccckkkkeeeetttt....hhhh>>>>
  14.  
  15.      iiiinnnntttt ssssoooocccckkkkeeeettttppppaaaaiiiirrrr ((((iiiinnnntttt dddd,,,, iiiinnnntttt ttttyyyyppppeeee,,,, iiiinnnntttt pppprrrroooottttooooccccoooollll,,,, iiiinnnntttt ssssvvvv[[[[2222]]]]))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      The _s_o_c_k_e_t_p_a_i_r call creates an unnamed pair of connected sockets in the
  19.      specified domain _d, of the specified _t_y_p_e, and using the optionally
  20.      specified _p_r_o_t_o_c_o_l.  The descriptors used in referencing the new sockets
  21.      are returned in _s_v[0] and _s_v[1].  The two sockets are indistinguishable.
  22.  
  23. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  24.      A 0 is returned if the call succeeds, -1 if it fails.
  25.  
  26. EEEERRRRRRRROOOORRRRSSSS
  27.      The call succeeds unless:
  28.  
  29.      [EMFILE]            Too many descriptors are in use by this process.
  30.  
  31.      [EAFNOSUPPORT]      The specified address family is not supported on this
  32.                          machine.
  33.  
  34.      [EPROTONOSUPPORT]   The specified protocol is not supported on this
  35.                          machine.
  36.  
  37.      [EOPNOSUPPORT]      The specified protocol does not support creation of
  38.                          socket pairs.
  39.  
  40.      [EFAULT]            The address _s_v does not specify a valid part of the
  41.                          process address space.
  42.  
  43. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  44.      read(2), write(2), pipe(2)
  45.  
  46. NNNNOOOOTTTTEEEESSSS
  47.      ABI-compliant versions of the above call can be obtained from
  48.      _l_i_b_s_o_c_k_e_t._s_o.
  49.  
  50.      This call is currently implemented only for the UNIX domain.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.