/[gcl]/gcl/info/si-defs.texi
ViewVC logotype

Diff of /gcl/info/si-defs.texi

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

revision 1.4 by mjthomas, Wed Jul 9 05:50:52 2003 UTC revision 1.5 by camm, Sun May 1 21:18:23 2005 UTC
# Line 966  vector is not a fixnum array. Line 966  vector is not a fixnum array.
966     Returns the end of the I'th match from the previous STRING-MATCH     Returns the end of the I'th match from the previous STRING-MATCH
967  @end defun  @end defun
968    
969    @defun SOCKET (port &key host server async myaddr myport daemon)
970    
971    Establishes a socket connection to the specified PORT under a variety
972    of circumstances.  
973    
974    If HOST is specified, then it is a string designating the IP address
975    of the server to which we are the client.  ASYNC specifies that the
976    connection should be made asynchronously, and the call return
977    immediately.  MYADDR and MYPORT can specify the IP address and port
978    respectively of a client connection, for example when the running
979    machine has several network interfaces.
980    
981    If SERVER is specified, then it is a function which will handle
982    incoming connections to this PORT.  DAEMON specifies that the running
983    process should be forked to handle incoming connections in the
984    background.  If DAEMON is set to the keyword PERSISTENT, then the
985    backgrounded process will survive when the parent process exits, and
986    the SOCKET call returns NIL.  Any other non-NIL setting of DAEMON
987    causes the socket call to return the process id of the backgrounded
988    process.  DAEMON currently only works on BSD and Linux based systems.
989    
990    If DAEMON is not set or nil, or if the socket is not a SERVER socket,
991    then the SOCKET call returns a two way stream.  In this case, the
992    running process is responsible for all I/O operations on the stream.
993    Specifically, if a SERVER socket is created as a non-DAEMON, then the
994    running process must LISTEN for connections, ACCEPT them when present,
995    and call the SERVER function on the stream returned by ACCEPT.
996    
997    @end defun
998    
999    @defun ACCEPT (stream)
1000    
1001    Creates a new two-way stream to handle an individual incoming
1002    connection to STREAM, which must have been created with the SOCKET
1003    function with the SERVER keyword set.  ACCEPT should only be invoked
1004    when LISTEN on STREAM returns T.  If the STREAM was created with the
1005    DAEMON keyword set in the call to SOCKET, ACCEPT is unnecessary and
1006    will be called automatically as needed.
1007    
1008    @end defun
1009    
1010  @menu  @menu
1011  * Regular Expressions::          * Regular Expressions::        

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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