ICI Modules: net: shutdown


Modules by name : by type

Synopsis

socket = net.shutdown(socket [, int])

Description

Shutdown the send or receive or both sides of a TCP connection. The optional int argument specifies which direction is to be shut down, 0 for send, 1 for receive and 2 for both. The default is 2, both sides of the connection are closed.

The function returns the socket object passed as argument to allow chaining of socket related function calls.