|
|||||||||
| 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.Portmapper
The RPC Portmapper
| Constructor Summary | |
Portmapper()
Constructor that creates and starts the portmapper 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 in,
XDRStream out)
Dispatcher Routine that handles the call requests. |
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 portmapper service (no parameters). |
| Methods inherited from class com.distinct.rpc.JRPCServer |
DoVersionCheck, 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 |
| Constructor Detail |
public Portmapper()
throws RPCError
RPCError - If the portmapper could not be started.| Method Detail |
public static void main(java.lang.String[] args)
public boolean DoCall(int proc,
XDRStream in,
XDRStream out)
DoCall in class JRPCServerproc - The index of the requested function.in - read the input-parameter from this XDR stream.out - write the return-parameter to this XDR stream.
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 | ||||||||