/[guile]/guile/guile-core/doc/ref/posix.texi
ViewVC logotype

Diff of /guile/guile-core/doc/ref/posix.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by kryde, Fri Aug 29 23:09:39 2003 UTC revision 1.24 by kryde, Fri Aug 29 23:13:48 2003 UTC
# Line 2174  in host order. Line 2174  in host order.
2174    
2175  @deffn {Scheme Procedure} socket family style proto  @deffn {Scheme Procedure} socket family style proto
2176  @deffnx {C Function} scm_socket (family, style, proto)  @deffnx {C Function} scm_socket (family, style, proto)
 @vindex PF_UNIX  
 @vindex PF_INET  
 @vindex PF_INET6  
 @vindex SOCK_STREAM  
 @vindex SOCK_DGRAM  
 @vindex SOCK_RAW  
2177  Return a new socket port of the type specified by @var{family},  Return a new socket port of the type specified by @var{family},
2178  @var{style} and @var{proto}.  All three parameters are  @var{style} and @var{proto}.  All three parameters are integers.  The
2179  integers.  Supported values for @var{family} are  possible values for @var{family} are as follows, where supported by
2180  @code{PF_UNIX}, @code{PF_INET} and @code{PF_INET6}.  the system,
2181  Typical values for @var{style} are @code{SOCK_STREAM},  
2182  @code{SOCK_DGRAM} and @code{SOCK_RAW}.  @defvar PF_UNIX
2183    @defvarx PF_INET
2184    @defvarx PF_INET6
2185    @end defvar
2186    
2187    The possible values for @var{style} are as follows, again where
2188    supported by the system,
2189    
2190    @defvar SOCK_STREAM
2191    @defvarx SOCK_DGRAM
2192    @defvarx SOCK_RAW
2193    @end defvar
2194    
2195  @var{proto} can be obtained from a protocol name using  @var{proto} can be obtained from a protocol name using
2196  @code{getprotobyname}.  A value of zero specifies the default  @code{getprotobyname} (@pxref{Network Databases}).  A value of zero
2197  protocol, which is usually right.  means the default protocol, which is usually right.
2198    
2199  A single socket port cannot by used for communication until it  A socket cannot by used for communication until it has been connected
2200  has been connected to another socket.  somewhere, usually with either @code{connect} or @code{accept} below.
2201  @end deffn  @end deffn
2202    
2203  @deffn {Scheme Procedure} socketpair family style proto  @deffn {Scheme Procedure} socketpair family style proto

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26