All Packages Class Hierarchy This Package Previous Next Index
Class netbula.ORPC.Svc
java.lang.Object
|
+----netbula.ORPC.Svc
- public abstract class Svc
- extends Object
Class that represents a RPC service
-
prog
-
-
TCPSVC
-
-
UDPSVC
-
-
vers
-
-
Svc(int, int)
-
-
auth(int, OpaAuth, OpaAuth, InetAddress)
- Authenticate client on RPC call.
-
proc_call(int, XDR)
- RPC dispatch function.
-
run()
- Create both TCP and UDP server and run them.
-
svc_run()
- Run the created servers in their own threads,
return immediately.
prog
public int prog
vers
public int vers
TCPSVC
public static final int TCPSVC
UDPSVC
public static final int UDPSVC
Svc
public Svc(int p,
int v)
proc_call
public abstract XDT proc_call(int proc,
XDR inXDR) throws XDRError
- RPC dispatch function.
The jrpcgen generates this method from the IDL file.
auth
public OpaAuth auth(int proc,
OpaAuth cred,
OpaAuth verf,
InetAddress client_add) throws rpc_err
- Authenticate client on RPC call.
This method is called before the RPC implementation function is entered.
To indicate failed authentication, it should throw an rpc_err exception.
The default action is simply return new OpaAuth(), a service which wants authentication
check should override this method.
- Parameters:
- proc - procedue number for the incoming call
- cred - credential of the incoming call
- verf - verifier of the incoming call
- client_add - address of the client
svc_run
public void svc_run() throws rpc_err
- Run the created servers in their own threads,
return immediately.
run
public void run() throws rpc_err
- Create both TCP and UDP server and run them.
This is a convenience function. It creates a UDP and a TCP server,
unregister previously registered servers,
registered the new servers, run TCP server in a new thread and the UDP server
in current thread. Never returns if sucessful.
All Packages Class Hierarchy This Package Previous Next Index