Safe Haskell | None |
---|---|
Language | Haskell98 |
Warning: This is an internal module and subject to change without notice.
- newtype Context = Context {}
- newtype Socket a = Socket {}
- data SocketRepr = SocketRepr {}
- class SocketType a where
- zmqSocketType :: a -> ZMQSocketType
- class SocketLike s where
- newtype Message = Message {}
- data Flag
- type Timeout = Int64
- type Size = Word
- data Switch
- data EventType
- data EventMsg
- = Connected !ByteString !Fd
- | ConnectDelayed !ByteString
- | ConnectRetried !ByteString !Int
- | Listening !ByteString !Fd
- | BindFailed !ByteString !Int
- | Accepted !ByteString !Fd
- | AcceptFailed !ByteString !Int
- | Closed !ByteString !Fd
- | CloseFailed !ByteString !Int
- | Disconnected !ByteString !Fd
- | MonitorStopped !ByteString !Int
- data SecurityMechanism
- data KeyFormat a where
- messageOf :: ByteString -> IO Message
- messageOfLazy :: ByteString -> IO Message
- messageClose :: Message -> IO ()
- messageFree :: Message -> IO ()
- messageInit :: IO Message
- messageInitSize :: Size -> IO Message
- setIntOpt :: (Storable b, Integral b) => Socket a -> ZMQOption -> b -> IO ()
- setStrOpt :: Socket a -> ZMQOption -> String -> IO ()
- getIntOpt :: (Storable b, Integral b) => Socket a -> ZMQOption -> b -> IO b
- getStrOpt :: Socket a -> ZMQOption -> IO String
- getInt32Option :: ZMQOption -> Socket a -> IO Int
- setInt32OptFromRestricted :: Integral i => ZMQOption -> Restricted r i -> Socket b -> IO ()
- ctxIntOption :: Integral i => String -> ZMQCtxOption -> Context -> IO i
- setCtxIntOption :: Integral i => String -> ZMQCtxOption -> i -> Context -> IO ()
- getByteStringOpt :: Socket a -> ZMQOption -> IO ByteString
- setByteStringOpt :: Socket a -> ZMQOption -> ByteString -> IO ()
- z85Encode :: MonadIO m => Restricted Div4 ByteString -> m ByteString
- z85Decode :: MonadIO m => Restricted Div5 ByteString -> m ByteString
- toZMQFlag :: Flag -> ZMQFlag
- combine :: (Integral i, Bits i) => [i] -> i
- combineFlags :: [Flag] -> CInt
- mkSocketRepr :: SocketType t => t -> Context -> IO SocketRepr
- closeSock :: SocketRepr -> IO ()
- onSocket :: String -> Socket a -> (ZMQSocket -> IO b) -> IO b
- bool2cint :: Bool -> CInt
- toSwitch :: (Show a, Integral a) => String -> a -> Switch
- fromSwitch :: Integral a => Switch -> a
- events2cint :: [EventType] -> CInt
- eventMessage :: ByteString -> ZMQEvent -> EventMsg
- toMechanism :: SecurityMechanism -> ZMQSecMechanism
- fromMechanism :: String -> Int -> SecurityMechanism
- getKey :: KeyFormat f -> Socket a -> ZMQOption -> IO ByteString
Documentation
data SocketRepr Source
class SocketLike s where Source
Flags to apply on send operations (cf. man zmq_send)
Configuration switch
Event types to monitor.
Event Message to receive when monitoring socket events.
messageOf :: ByteString -> IO Message Source
messageOfLazy :: ByteString -> IO Message Source
messageClose :: Message -> IO () Source
messageFree :: Message -> IO () Source
messageInitSize :: Size -> IO Message Source
setInt32OptFromRestricted :: Integral i => ZMQOption -> Restricted r i -> Socket b -> IO () Source
ctxIntOption :: Integral i => String -> ZMQCtxOption -> Context -> IO i Source
setCtxIntOption :: Integral i => String -> ZMQCtxOption -> i -> Context -> IO () Source
getByteStringOpt :: Socket a -> ZMQOption -> IO ByteString Source
setByteStringOpt :: Socket a -> ZMQOption -> ByteString -> IO () Source
z85Encode :: MonadIO m => Restricted Div4 ByteString -> m ByteString Source
z85Decode :: MonadIO m => Restricted Div5 ByteString -> m ByteString Source
combineFlags :: [Flag] -> CInt Source
mkSocketRepr :: SocketType t => t -> Context -> IO SocketRepr Source
closeSock :: SocketRepr -> IO () Source
fromSwitch :: Integral a => Switch -> a Source
events2cint :: [EventType] -> CInt Source
eventMessage :: ByteString -> ZMQEvent -> EventMsg Source
fromMechanism :: String -> Int -> SecurityMechanism Source