The SocketDirection is used as a parameter to Socket.close and RawSocket.close to close a socket in the specified direction(s).
both
const SocketDirection._(2)
receive
const SocketDirection._(0)
send
const SocketDirection._(1)