Safe Haskell | Safe-Infered |
---|
System.Network.ZMQ.MDP.Client
- data Response = Response {
- protocol :: Protocol
- service :: ByteString
- response :: [ByteString]
- data ClientSocket
- data ClientError
- sendAndReceive :: ClientSocket -> ByteString -> [ByteString] -> IO (Either ClientError Response)
- withClientSocket :: String -> (ClientSocket -> IO a) -> IO a
Documentation
Types
Constructors
Response | |
Fields
|
data ClientSocket Source
data ClientError Source
Constructors
ClientTimedOut | |
ClientBadProtocol |
Functions
sendAndReceive :: ClientSocket -> ByteString -> [ByteString] -> IO (Either ClientError Response)Source
withClientSocket :: String -> (ClientSocket -> IO a) -> IO aSource