Safe Haskell | None |
---|
- 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 = StringSource
type RequestOpCode = Word8Source
extensionPresent :: Connection -> ExtensionId -> IO BoolSource
extensionInfo :: Connection -> ExtensionId -> IO QueryExtensionReplySource
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 PutSource
Convert an extension request to a put action.
Handles grabbing the extension opcode and feeding it
into the serializeRequest
function.