ONC-RPC-0.2: ONC RPC (aka Sun RPC) and XDR library
Safe HaskellSafe-Inferred
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

Instances details
XDR a => XDR (Call a r) Source # 
Instance details

Defined in Network.ONCRPC.Message

Methods

xdrType :: Call a r -> String Source #

xdrPut :: Call a r -> Put Source #

xdrGet :: Get (Call a r) Source #

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

Defined in Network.ONCRPC.Message

Methods

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

show :: Call a r -> String #

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

data Reply a Source #

Reply_body with results

Constructors

Reply 

Fields

ReplyError 
ReplyRejected 
ReplyFail String

Missing/corrupt response

Instances

Instances details
Functor Reply Source # 
Instance details

Defined in Network.ONCRPC.Message

Methods

fmap :: (a -> b) -> Reply a -> Reply b #

(<$) :: a -> Reply b -> Reply a #

Exception ReplyException Source # 
Instance details

Defined in Network.ONCRPC.Message

XDR a => XDR (Reply a) Source # 
Instance details

Defined in Network.ONCRPC.Message

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

Defined in Network.ONCRPC.Message

Methods

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

show :: Reply a -> String #

showList :: [Reply a] -> ShowS #

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

Instances details
(XDR a, XDR r) => XDR (Msg a r) Source # 
Instance details

Defined in Network.ONCRPC.Message

Methods

xdrType :: Msg a r -> String Source #

xdrPut :: Msg a r -> Put Source #

xdrGet :: Get (Msg a r) Source #

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

Defined in Network.ONCRPC.Message

Methods

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

show :: Msg a r -> String #

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