Safe Haskell | None |
---|---|
Language | Haskell98 |
- type ExtensionId = String
- type RequestOpCode = Word8
- extensionPresent :: Connection -> ExtensionId -> IO Bool
- extensionOpCode :: Connection -> ExtensionId -> IO RequestOpCode
- extensionInfo :: Connection -> ExtensionId -> IO QueryExtensionReply
- serializeExtensionRequest :: ExtensionRequest a => Connection -> a -> IO Put
Documentation
type ExtensionId = String Source
type RequestOpCode = Word8 Source
extensionPresent :: Connection -> ExtensionId -> IO Bool Source
extensionInfo :: Connection -> ExtensionId -> IO QueryExtensionReply Source
Lookup an extension. Will attempt to check the extension cache first. Will block until the info is retrieved from the server. Will cache the extension information when found.
serializeExtensionRequest :: ExtensionRequest a => Connection -> a -> IO Put Source
Convert an extension request to a put action.
Handles grabbing the extension opcode and feeding it
into the serializeRequest
function.