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


Variable Index

 o prog
 o TCPSVC
 o UDPSVC
 o vers

Constructor Index

 o Svc(int, int)

Method Index

 o auth(int, OpaAuth, OpaAuth, InetAddress)
Authenticate client on RPC call.
 o proc_call(int, XDR)
RPC dispatch function.
 o run()
Create both TCP and UDP server and run them.
 o svc_run()
Run the created servers in their own threads, return immediately.

Variables

 o prog
 public int prog
 o vers
 public int vers
 o TCPSVC
 public static final int TCPSVC
 o UDPSVC
 public static final int UDPSVC

Constructors

 o Svc
 public Svc(int p,
            int v)

Methods

 o 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.

 o 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
 o svc_run
 public void svc_run() throws rpc_err
Run the created servers in their own threads, return immediately.

 o 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