| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
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
- module Network.ONCRPC.XDR
- data Authsys_parms = Authsys_parms {}
- data Auth
- getAuthUnix :: IO Auth
- type ReplyException = Reply Void
- data Reply a
- = Reply {
- replyVerf :: !Auth
- replyResults :: a
- | ReplyError { }
- | ReplyRejected { }
- | ReplyFail String
- = Reply {
- data Call a r = Call {}
- data RPCException
- module Network.ONCRPC.Client
Documentation
module Network.ONCRPC.XDR
data Authsys_parms Source #
Constructors
| Authsys_parms | |
Fields
| |
Instances
| Opaqued Authsys_parms Source # | |
Defined in Network.ONCRPC.XDR.Opaque Methods opacify :: Authsys_parms -> ByteString Source # unopacify :: MonadFail m => ByteString -> m Authsys_parms Source # | |
| XDR Authsys_parms Source # | |
Defined in Network.ONCRPC.Prot | |
| Show Authsys_parms Source # | |
Defined in Network.ONCRPC.Prot Methods showsPrec :: Int -> Authsys_parms -> ShowS # show :: Authsys_parms -> String # showList :: [Authsys_parms] -> ShowS # | |
| Eq Authsys_parms Source # | |
Defined in Network.ONCRPC.Prot Methods (==) :: Authsys_parms -> Authsys_parms -> Bool # (/=) :: Authsys_parms -> Authsys_parms -> Bool # | |
More translucent version of Opaque_auth union (not expressible in XDR)
Constructors
| AuthNone | |
| AuthSys !Authsys_parms | |
| AuthOpaque !Opaque_auth |
getAuthUnix :: IO Auth Source #
Get the appropriate, effective AuthSys value for the current process. You know, if you're into that sort of thing.
type ReplyException = Reply Void Source #
Reply_body with results
Constructors
| Reply | |
Fields
| |
| ReplyError | |
Fields
| |
| ReplyRejected | |
Fields | |
| ReplyFail String | Missing/corrupt response |
Instances
| Functor Reply Source # | |
| Exception ReplyException Source # | |
Defined in Network.ONCRPC.Message Methods toException :: ReplyException -> SomeException # | |
| XDR a => XDR (Reply a) Source # | |
| Show a => Show (Reply a) Source # | |
Call_body with parameters
Constructors
| Call | |
data RPCException Source #
Instances
| Exception RPCException Source # | |
Defined in Network.ONCRPC.Exception Methods toException :: RPCException -> SomeException # fromException :: SomeException -> Maybe RPCException # displayException :: RPCException -> String # | |
| Show RPCException Source # | |
Defined in Network.ONCRPC.Exception Methods showsPrec :: Int -> RPCException -> ShowS # show :: RPCException -> String # showList :: [RPCException] -> ShowS # | |
module Network.ONCRPC.Client