ONC-RPC-0.1: ONC RPC (aka Sun RPC) and XDR library

Safe HaskellNone
LanguageHaskell2010

Network.ONCRPC.Message

Description

Higher-level for RPC messages.

Synopsis

Documentation

data Call a r Source #

Call_body with parameters

Constructors

Call 

Fields

Instances

Show a => Show (Call a r) Source # 

Methods

showsPrec :: Int -> Call a r -> ShowS #

show :: Call a r -> String #

showList :: [Call a r] -> ShowS #

XDR a => XDR (Call a r) Source # 

Methods

xdrType :: Call a r -> String Source #

xdrPut :: Call a r -> Put Source #

xdrGet :: Get (Call a r) Source #

replyResult :: Reply a -> Either ReplyException a Source #

The successful reply results or an error.

getReply :: XDR a => Reply_body -> Get (Reply a) Source #

Construct a Reply based on an already-parsed Reply_body and to-be-parsed results.

data Msg a r Source #

Rpc_msg with arguments or results.

Constructors

MsgCall 

Fields

MsgReply 

Fields

Instances

(Show r, Show a) => Show (Msg a r) Source # 

Methods

showsPrec :: Int -> Msg a r -> ShowS #

show :: Msg a r -> String #

showList :: [Msg a r] -> ShowS #

(XDR a, XDR r) => XDR (Msg a r) Source # 

Methods

xdrType :: Msg a r -> String Source #

xdrPut :: Msg a r -> Put Source #

xdrGet :: Get (Msg a r) Source #