Next: , Previous: , Up: srfi basic-socket spec   [Index]


2.34.3.5 Control features

The following bindings are exported by the libraries (srfi :106) and (srfi :106 socket).

Function: call-with-socket socket proc

Call a given procedure with a given socket as an argument. If proc returns: call-with-socket returns the result of proc and socket is automatically closed. If proc does not return: then socket is not closed automatically.