zeromq4-haskell-0.8.0: Bindings to ZeroMQ 4.x
Safe HaskellNone
LanguageHaskell98

System.ZMQ4.Internal

Description

Warning: This is an internal module and subject to change without notice.

Synopsis

Documentation

newtype Context Source #

A 0MQ context representation.

Constructors

Context 

Fields

newtype Socket a Source #

A 0MQ Socket.

Constructors

Socket 

Instances

Instances details
SocketLike Socket Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

toSocket :: Socket t -> Socket t Source #

data SocketRepr Source #

Constructors

SocketRepr 

Fields

class SocketType a where Source #

Socket types.

Instances

Instances details
SocketType Stream Source # 
Instance details

Defined in System.ZMQ4

SocketType Push Source # 
Instance details

Defined in System.ZMQ4

SocketType Pull Source # 
Instance details

Defined in System.ZMQ4

SocketType Router Source # 
Instance details

Defined in System.ZMQ4

SocketType Dealer Source # 
Instance details

Defined in System.ZMQ4

SocketType Rep Source # 
Instance details

Defined in System.ZMQ4

SocketType Req Source # 
Instance details

Defined in System.ZMQ4

SocketType XSub Source # 
Instance details

Defined in System.ZMQ4

SocketType XPub Source # 
Instance details

Defined in System.ZMQ4

SocketType Sub Source # 
Instance details

Defined in System.ZMQ4

SocketType Pub Source # 
Instance details

Defined in System.ZMQ4

SocketType Pair Source # 
Instance details

Defined in System.ZMQ4

class SocketLike s where Source #

Methods

toSocket :: s t -> Socket t Source #

Instances

Instances details
SocketLike Socket Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

toSocket :: Socket t -> Socket t Source #

SocketLike (Socket z) Source # 
Instance details

Defined in System.ZMQ4.Monadic

Methods

toSocket :: Socket z t -> Socket0 t Source #

newtype Message Source #

Constructors

Message 

Fields

data Flag Source #

Flags to apply on send operations (cf. man zmq_send)

Constructors

DontWait

ZMQ_DONTWAIT (Only relevant on Windows.)

SendMore

ZMQ_SNDMORE

Instances

Instances details
Eq Flag Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

(==) :: Flag -> Flag -> Bool

(/=) :: Flag -> Flag -> Bool

Ord Flag Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

compare :: Flag -> Flag -> Ordering

(<) :: Flag -> Flag -> Bool

(<=) :: Flag -> Flag -> Bool

(>) :: Flag -> Flag -> Bool

(>=) :: Flag -> Flag -> Bool

max :: Flag -> Flag -> Flag

min :: Flag -> Flag -> Flag

Show Flag Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

showsPrec :: Int -> Flag -> ShowS

show :: Flag -> String

showList :: [Flag] -> ShowS

type Timeout = Int64 Source #

type Size = Word Source #

data Switch Source #

Configuration switch

Constructors

Default

Use default setting

On

Activate setting

Off

De-activate setting

Instances

Instances details
Eq Switch Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

(==) :: Switch -> Switch -> Bool

(/=) :: Switch -> Switch -> Bool

Ord Switch Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

compare :: Switch -> Switch -> Ordering

(<) :: Switch -> Switch -> Bool

(<=) :: Switch -> Switch -> Bool

(>) :: Switch -> Switch -> Bool

(>=) :: Switch -> Switch -> Bool

max :: Switch -> Switch -> Switch

min :: Switch -> Switch -> Switch

Show Switch Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

showsPrec :: Int -> Switch -> ShowS

show :: Switch -> String

showList :: [Switch] -> ShowS

data EventType Source #

Event types to monitor.

Instances

Instances details
Eq EventType Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

(==) :: EventType -> EventType -> Bool

(/=) :: EventType -> EventType -> Bool

Ord EventType Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

compare :: EventType -> EventType -> Ordering

(<) :: EventType -> EventType -> Bool

(<=) :: EventType -> EventType -> Bool

(>) :: EventType -> EventType -> Bool

(>=) :: EventType -> EventType -> Bool

max :: EventType -> EventType -> EventType

min :: EventType -> EventType -> EventType

Show EventType Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

showsPrec :: Int -> EventType -> ShowS

show :: EventType -> String

showList :: [EventType] -> ShowS

data EventMsg Source #

Event Message to receive when monitoring socket events.

Constructors

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 

Instances

Instances details
Eq EventMsg Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

(==) :: EventMsg -> EventMsg -> Bool

(/=) :: EventMsg -> EventMsg -> Bool

Show EventMsg Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

showsPrec :: Int -> EventMsg -> ShowS

show :: EventMsg -> String

showList :: [EventMsg] -> ShowS

data SecurityMechanism Source #

Constructors

Null 
Plain 
Curve 

Instances

Instances details
Eq SecurityMechanism Source # 
Instance details

Defined in System.ZMQ4.Internal

Show SecurityMechanism Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

showsPrec :: Int -> SecurityMechanism -> ShowS

show :: SecurityMechanism -> String

showList :: [SecurityMechanism] -> ShowS

data KeyFormat a where Source #

Instances

Instances details
Eq (KeyFormat a) Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

(==) :: KeyFormat a -> KeyFormat a -> Bool

(/=) :: KeyFormat a -> KeyFormat a -> Bool

Show (KeyFormat a) Source # 
Instance details

Defined in System.ZMQ4.Internal

Methods

showsPrec :: Int -> KeyFormat a -> ShowS

show :: KeyFormat a -> String

showList :: [KeyFormat a] -> ShowS

messageOf :: ByteString -> IO Message Source #

messageOfLazy :: ByteString -> IO Message Source #

setIntOpt :: (Storable b, Integral b) => Socket a -> ZMQOption -> b -> IO () Source #

setStrOpt :: Socket a -> ZMQOption -> String -> IO () Source #

getIntOpt :: (Storable b, Integral b) => Socket a -> ZMQOption -> b -> IO b Source #

getStrOpt :: Socket a -> ZMQOption -> IO String 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 #

getBytesOpt :: Socket a -> ZMQOption -> IO ByteString 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 #

combine :: (Integral i, Bits i) => [i] -> i Source #

combineFlags :: [Flag] -> CInt Source #

onSocket :: String -> Socket a -> (ZMQSocket -> IO b) -> IO b Source #

bool2cint :: Bool -> CInt Source #

toSwitch :: (Show a, Integral a) => String -> a -> Switch Source #

fromSwitch :: Integral a => Switch -> a Source #

eventMessage :: ByteString -> ZMQEvent -> EventMsg Source #

getKey :: KeyFormat f -> Socket a -> ZMQOption -> IO ByteString Source #