Print this page
Clearview IPMP manpages

Split Close
Expand all
Collapse all
          --- old/./getsockopt.3socket.txt
          +++ new/./getsockopt.3socket.txt
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18           int optlen);
  19   19  
  20   20  
  21   21  DESCRIPTION
  22   22       The  getsockopt()  and  setsockopt()  functions   manipulate
  23   23       options  associated with a socket. Options may exist at mul-
  24   24       tiple protocol levels; they are always present at the upper-
  25   25       most "socket" level.
  26   26  
  27   27  
  28      -     When manipulating socket options, the  level  at  which  the
  29      -     option resides and the name of the option must be specified.
  30      -     To manipulate options at the "socket" level, level is speci-
  31      -     fied  as  SOL_SOCKET.  To  manipulate  options  at any other
  32      -     level, level is the protocol number  of  the  protocol  that
  33      -     controls the option. For example, to indicate that an option
  34      -     is to be interpreted by the TCP protocol, level  is  set  to
  35      -     the TCP protocol number. See getprotobyname(3SOCKET).
       28 +     The *level* argument  specifies the protocol level  at which
       29 +     the option resides.    To manipulate options  at the  socket
       30 +     level,  specify the *level*   argument as  *SOL_SOCKET*.  To
       31 +     manipulate  options  at the    protocol level,   supply  the
       32 +     appropriate protocol number for the protocol controlling the
       33 +     option.  For example, to  indicate  that an option  will  be
       34 +     interpreted  by TCP, set *level*  to the  protocol number of
       35 +     TCP,  as defined   in the  *<netinet/in.h>*  header,  or  as
       36 +     determined by  using *getprotobyname(3SOCKET)*.  Some socket
       37 +     protocol families may also define additional levels, such as
       38 +     *SOL_ROUTE*.  Only socket-level options are described here.
  36   39  
  37   40  
  38   41       The parameters optval and optlen are used to  access  option
  39   42       values  for  setsockopt(). For getsockopt(), they identify a
  40   43       buffer in which the value(s) for the requested option(s) are
  41   44       to  be  returned. For getsockopt(), optlen is a value-result
  42   45       parameter, initially  containing  the  size  of  the  buffer
  43   46       pointed to by optval, and modified on return to indicate the
  44   47       actual size of the value returned. Use  a  0  optval  if  no
  45   48       option value is to be supplied or returned.
↓ open down ↓ 414 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX