Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data DPServerPacket Source
data ProtocolVersion Source
type PacketOrError = Either Word8 DPServerPacket Source
defaultDemoState :: ServerProtocolState Source
parsePacket :: ServerProtocolStateM PacketOrError Source
parsePackets :: ServerProtocolStateM [PacketOrError] Source
iterPacketsWithState :: ByteString -> ServerProtocolState -> [Either ErrorInfo (PacketOrError, ServerProtocolState)] Source
iterPackets :: ByteString -> ServerProtocolState -> ([Either ErrorInfo PacketOrError], ServerProtocolState) Source
listPackets :: ByteString -> ServerProtocolState -> Either ErrorInfo ([PacketOrError], ServerProtocolState) Source