Open a socket-stream connection to server host.
Arguments and values
|host||A 32-bit internet address or a string specifying the remote host|
|port||An integer or a string specifying the service port|
|socket-stream||A socket stream|
A socket stream.
A host string can be either a host name or a “dotted” IP address, such as
String values available for specifying port are found in the operating
system's services file and labeled as being
tcp services. On Unix
systems, the services file is
Open a socket connection to the GBBopen Project web server:
> (open-connection "GBBopen.org" 80) #<socket stream connected from localhost/51756 to gbbopen.org/80> >
Connections should always be closed using
The GBBopen Project