remote-hostname-and-portPortable Socketsstart-connection-servershutdown-socket-streamGoTo Top

shutdown-socket-stream   socket-stream direction[Function]

Purpose
Shut down (close) one direction of an open connection.

Package   :portable-sockets

Module   :portable-sockets

Arguments and values

socket-stream     A socket stream
direction     The keyword symbol :input or :output specifying the direction to be closed

See also
    start-connection-server
    open-connection
    with-open-connection

Example
Tell the other end of a socket connection that we are done sending output on the socket stream (send an end-of-file indication):

  (shutdown-socket-stream socket-stream ':output)

Note
Connections should always be closed using close (from both sides) when they are no longer needed to free up operating-system resources.


The GBBopen Project


remote-hostname-and-portPortable Socketsstart-connection-servershutdown-socket-streamGoTo Top