shutdown method Null safety

void shutdown (
  1. SocketDirection direction
)

Shuts down a socket in the provided direction.

Calling shutdown will never throw an exception and calling it several times is supported. If both SocketDirection.RECEIVE and SocketDirection.SEND directions are closed, the socket is closed completely, the same as if closeSync has been called.

Implementation

void shutdown(SocketDirection direction);