ONC-RPC-0.2: ONC RPC (aka Sun RPC) and XDR library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.ONCRPC

Description

ONC (Sun) RPC: Remote Procedure Call Protocol Version 2 as described in RFC5531

This module should be imported qualified, e.g., as RPC.

Synopsis

Documentation

data Auth Source #

More translucent version of Opaque_auth union (not expressible in XDR)

Instances

Instances details
XDR Auth Source # 
Instance details

Defined in Network.ONCRPC.Auth

Show Auth Source # 
Instance details

Defined in Network.ONCRPC.Auth

Methods

showsPrec :: Int -> Auth -> ShowS #

show :: Auth -> String #

showList :: [Auth] -> ShowS #

Eq Auth Source # 
Instance details

Defined in Network.ONCRPC.Auth

Methods

(==) :: Auth -> Auth -> Bool #

(/=) :: Auth -> Auth -> Bool #

getAuthUnix :: IO Auth Source #

Get the appropriate, effective AuthSys value for the current process. You know, if you're into that sort of thing.

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 #

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 #