periodic-common-1.1.7.0: Periodic task system common.
Safe HaskellNone
LanguageHaskell2010

Periodic.Types.Packet

Documentation

data Magic Source #

Constructors

REQ 
RES 

Instances

Instances details
Eq Magic Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

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

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

Show Magic Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

showsPrec :: Int -> Magic -> ShowS #

show :: Magic -> String #

showList :: [Magic] -> ShowS #

Binary Magic Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

put :: Magic -> Put #

get :: Get Magic #

putList :: [Magic] -> Put #

data Packet a Source #

Instances

Instances details
SetPacketId Msgid (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

setPacketId :: Msgid -> Packet a -> Packet a #

GetPacketId Msgid (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

getPacketId :: Packet a -> Msgid #

Eq a => Eq (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

(==) :: Packet a -> Packet a -> Bool #

(/=) :: Packet a -> Packet a -> Bool #

Show a => Show (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

showsPrec :: Int -> Packet a -> ShowS #

show :: Packet a -> String #

showList :: [Packet a] -> ShowS #

Binary a => Binary (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

put :: Packet a -> Put #

get :: Get (Packet a) #

putList :: [Packet a] -> Put #

Binary a => RecvPacket (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

recvPacket :: MonadIO m => (Int -> m ByteString) -> m (Packet a) #

Binary a => SendPacket (Packet a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

sendPacket :: MonadIO m => Packet a -> (ByteString -> m ()) -> m () #

getResult :: a -> (b -> a) -> Maybe (Packet b) -> a Source #

data RegPacket a Source #

Instances

Instances details
Eq a => Eq (RegPacket a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

(==) :: RegPacket a -> RegPacket a -> Bool #

(/=) :: RegPacket a -> RegPacket a -> Bool #

Show a => Show (RegPacket a) Source # 
Instance details

Defined in Periodic.Types.Packet

Binary a => Binary (RegPacket a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

put :: RegPacket a -> Put #

get :: Get (RegPacket a) #

putList :: [RegPacket a] -> Put #

Binary a => RecvPacket (RegPacket a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

recvPacket :: MonadIO m => (Int -> m ByteString) -> m (RegPacket a) #

Binary a => SendPacket (RegPacket a) Source # 
Instance details

Defined in Periodic.Types.Packet

Methods

sendPacket :: MonadIO m => RegPacket a -> (ByteString -> m ()) -> m () #

Orphan instances

Binary CRC32 Source # 
Instance details

Methods

put :: CRC32 -> Put #

get :: Get CRC32 #

putList :: [CRC32] -> Put #