metro-socket-0.1.0.0: Socket transport for metro
Safe HaskellNone
LanguageHaskell2010

Metro.Socket

Synopsis

Documentation

data Socket #

Basic type for a socket.

Instances

Instances details
Eq Socket 
Instance details

Defined in Network.Socket.Types

Methods

(==) :: Socket -> Socket -> Bool #

(/=) :: Socket -> Socket -> Bool #

Show Socket 
Instance details

Defined in Network.Socket.Types

close :: Socket -> IO () #

Close the socket. This function does not throw exceptions even if the underlying system call returns errors.

If multiple threads use the same socket and one uses fdSocket and the other use close, unexpected behavior may happen. For more information, please refer to the documentation of fdSocket.