|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.distinct.rpc.JRPCServer
|
+--com.distinct.rpc.RPCBind
The RPCBind server
| Field Summary | |
static int |
RPCB_PORT
|
static int |
RPCBPROC_BCAST
|
static int |
RPCBPROC_CALLIT
|
static int |
RPCBPROC_DUMP
|
static int |
RPCBPROC_GETADDR
|
static int |
RPCBPROC_GETADDRLIST
|
static int |
RPCBPROC_GETSTAT
|
static int |
RPCBPROC_GETTIME
|
static int |
RPCBPROC_GETVERSADDR
|
static int |
RPCBPROC_INDIRECT
|
static int |
RPCBPROC_SET
|
static int |
RPCBPROC_TADDR2UADDR
|
static int |
RPCBPROC_UADDR2TADDR
|
static int |
RPCBPROC_UNSET
|
static int |
RPCBPROG
Program ID of the interface. |
static int |
RPCBSTAT_HIGHPROC
|
static int |
RPCBVERS
Version ID of the interface. |
static int |
RPCBVERS_2_STAT
|
static int |
RPCBVERS_3_STAT
|
static int |
RPCBVERS_4_STAT
|
static int |
RPCBVERS_STAT
|
static int |
RPCBVERS4
Version ID of the interface. |
| Constructor Summary | |
RPCBind()
Constructor that creates and starts the RPCBind service. |
|
| Method Summary | |
Auth |
DoAuth(int proc,
Auth cred,
Auth verf)
Overwrite this method only if you want your server to check authentication (Default are no checks). |
boolean |
DoCall(int proc,
XDRStream xin,
XDRStream xout)
Dispatcher Routine that interpretes the call requests. |
boolean |
DoVersionCheck(int vers)
Overwrite this method only if you want your server to handle versions explicitly (by default the version of server and request have to be identical). |
static java.lang.String |
encodeAddress(java.net.InetAddress host,
int port)
Encodes a pair Internet address a and a port number p into a string with format "a.a.a.a.p.p". |
boolean |
IsBatched(int proc)
Overwrite this method only if you want to implement batched RPCs. |
static void |
main(java.lang.String[] args)
Starts a stand-alone RPCBind service (no parameters). |
| Methods inherited from class com.distinct.rpc.JRPCServer |
EnumerateConnections, getAddress, getCallVersion, getClientData, GetConnectionState, getPort, getVersion, isMultithreaded, isTCPServer, RegisterServer, RegisterServer, run, setClientData, setMultithreaded, setStreamed, StartTCP, StartTCP, StartUDP, StartUDP, Stop, UnregisterServer, UnregisterServer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RPCB_PORT
public static final int RPCBSTAT_HIGHPROC
public static final int RPCBVERS_STAT
public static final int RPCBVERS_4_STAT
public static final int RPCBVERS_3_STAT
public static final int RPCBVERS_2_STAT
public static final int RPCBPROG
public static final int RPCBVERS
public static final int RPCBPROC_SET
public static final int RPCBPROC_UNSET
public static final int RPCBPROC_GETADDR
public static final int RPCBPROC_DUMP
public static final int RPCBPROC_CALLIT
public static final int RPCBPROC_GETTIME
public static final int RPCBPROC_UADDR2TADDR
public static final int RPCBPROC_TADDR2UADDR
public static final int RPCBVERS4
public static final int RPCBPROC_BCAST
public static final int RPCBPROC_GETVERSADDR
public static final int RPCBPROC_INDIRECT
public static final int RPCBPROC_GETADDRLIST
public static final int RPCBPROC_GETSTAT
| Constructor Detail |
public RPCBind()
throws RPCError
RPCError - If the RPCBBind could not be started.| Method Detail |
public static void main(java.lang.String[] args)
public static java.lang.String encodeAddress(java.net.InetAddress host,
int port)
host - the Internet address to be encoded.port - the port number to be encoded.
public boolean DoCall(int proc,
XDRStream xin,
XDRStream xout)
DoCall in class JRPCServerproc - The index of the requested function.xin - read the input-parameter from this XDR stream.xout - write the return-parameter to this XDR stream.
public boolean DoVersionCheck(int vers)
DoVersionCheck in class JRPCServervers - Version of the server requested by the call.
public Auth DoAuth(int proc,
Auth cred,
Auth verf)
throws RPCError
DoAuth in class JRPCServerproc - The ID of the requested function.cred - Authentication parameter provided by the client.verf - Verifier parameter provided by the client.
RPCError - If the authentication fails.public boolean IsBatched(int proc)
IsBatched in class JRPCServerproc - The ID of the executed function.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||