Package org.acplt.oncrpc
Class OncRpcGetPortResult
java.lang.Object
org.acplt.oncrpc.OncRpcGetPortResult
- All Implemented Interfaces:
XdrAble
The
OncRpcGetPortResult class represents the result from
a PMAP_GETPORT remote procedure call to the ONC/RPC portmapper.- Version:
- $Revision: 1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for initializing anOncRpcGetPortParamsresult object. -
Method Summary
Modifier and TypeMethodDescriptionvoidDecodes -- that is: deserializes -- anOncRpcGetPortParamsobject from a XDR stream.voidEncodes -- that is: serializes -- anOncRpcGetPortParamsobject into a XDR stream.
-
Field Details
-
port
public int portThe port number of the ONC/RPC in question. This is the only interesting piece of information in this class. Go live with it, you don't have alternatives.
-
-
Constructor Details
-
OncRpcGetPortResult
public OncRpcGetPortResult()Default constructor for initializing anOncRpcGetPortParamsresult object. It sets theportmember to a useless value.
-
-
Method Details
-
xdrEncode
Encodes -- that is: serializes -- anOncRpcGetPortParamsobject into a XDR stream.- Specified by:
xdrEncodein interfaceXdrAble- Parameters:
xdr- XDR stream to which information is sent for encoding.- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-
xdrDecode
Decodes -- that is: deserializes -- anOncRpcGetPortParamsobject from a XDR stream.- Specified by:
xdrDecodein interfaceXdrAble- Parameters:
xdr- XDR stream from which decoded information is retrieved.- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-