netbula.ORPC

Class Pmapsvc


public class Pmapsvc
extends Svc

Portmapper in Java. Missing rmt_call() function.

Field Summary

Fields inherited from class netbula.ORPC.Svc

TCPSVC, UDPSVC, prog, vers

Constructor Summary

Pmapsvc()

Method Summary

static void
main(args[] )
XDT
proc_call(int proc, XDR inXDR)
RPC dispatch function.
void
run()
Create both TCP and UDP server and run them.

Methods inherited from class netbula.ORPC.Svc

auth, getAsyncReply, getKeepAliveTime, getNoReply, getServer, proc_call, run, run, run, runThreadPool, setKeepAliveTime, svc_create, svc_reg, svc_run, svc_tcp_sock_create, svc_unreg

Constructor Details

Pmapsvc

public Pmapsvc()

Method Details

main

public static void main(args[] )

proc_call

public XDT proc_call(int proc,
                     XDR inXDR)
RPC dispatch function. The jrpcgen compiler generates this method from the IDL file.
Overrides:
proc_call in interface Svc

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.
Overrides:
run in interface Svc