Next: srfi basic-socket spec ops, Previous: srfi basic-socket spec intro, Up: srfi basic-socket spec [Index]
The following bindings are exported by the libraries (srfi :106)
and (srfi :106 socket)
.
Return a client socket connected to an Internet address.
The Internet address is identified by node and service. node and service must be strings. Example values for node: ‘"localhost"’, ‘127.0.0.1’. Example values for service: ‘"http"’, ‘"80"’.
The optional arguments may specify the created socket’s behaviour. If the optional arguments are omitted, then the following value should be used as default:
Defaults to: *af-inet*
.
Defaults to: *sock-stream*
.
Defaults to: (socket-merge-flags *ai-v4mapped* *ai-addrconfig*)
.
Defaults to: *ipproto-ip*
.
The returned socket may not be closed automatically so it is the users’ responsibility to close it explicitly.
For Vicare: whenever the returned socket object is garbage collected, the function
socket-close
is automatically applied to it.
Return a server socket waiting for connection.
The node argument is the same as the one of
make-client-socket
. The optional arguments may specify the
created socket’s behaviour. If the optional arguments are omitted, then
the following value should be used as default:
Defaults to: *af-inet*
.
Defaults to: *sock-stream*
.
Defaults to: *ipproto-ip*
.
The returned socket may not be closed automatically so it is the users’ responsibility to close it explicitly.
For Vicare: whenever the returned socket object is garbage collected, the function
socket-close
is automatically applied to it.
Return #t
if obj is a socket object, #f
otherwise.
Next: srfi basic-socket spec ops, Previous: srfi basic-socket spec intro, Up: srfi basic-socket spec [Index]