%shutdown() function

The %shutdown() function disables sends or receives on a socket.

See your host OS documentation for more information on this function.