| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectnetbula.ORPC.PmapField Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
int | |
int | |
int | |
int | |
Constructor Summary | |
| |
| |
Method Summary | |
XDT |
|
static boolean |
|
static boolean |
|
pmaplist |
|
XDT[] |
|
int |
|
static int |
|
int |
|
static int | |
boolean |
|
boolean |
|
void | |
public static final int PMAPPORT
- Field Value:
- 111
public static final int PMAPPROC_CALLIT
- Field Value:
- 5
public static final int PMAPPROC_DUMP
- Field Value:
- 4
public static final int PMAPPROC_GETPORT
- Field Value:
- 3
public static final int PMAPPROC_NULL
- Field Value:
- 0
public static final int PMAPPROC_SET
- Field Value:
- 1
public static final int PMAPPROC_UNSET
- Field Value:
- 2
public static final int PMAPPROG
- Field Value:
- 100000
public static final int PMAPVERS
- Field Value:
- 2
public static final int PMAPVERS_ORIG
- Field Value:
- 1
public static final int PMAPVERS_PROTO
- Field Value:
- 2
public int port
public int prog
public int prot
public int vers
public Pmap()
public Pmap(int p,
int v,
int proto,
int portno)When adding an entry to portmapper, one needs to use this constructor and then call the set() method.
public static boolean broadcastCall(InetAddress baddr,
int prog,
int vers,
int proc,
XDT args,
XDT res,
ReplyHandler handler)
throws rpc_errBroadcast RPC (prog, vers, proc, UDP) through portmappers on the net.
- Parameters:
baddr- broadcast address.prog- program number of the RPC servicevers- version number of the RPC serviceproc- procedure number to callargs- input argumentres- result argumenthandler- the reply handler
- See Also:
ReplyHandler
public static boolean broadcastCall(String baddr,
int prog,
int vers,
int proc,
XDT args,
XDT res,
ReplyHandler handler)
throws rpc_errBroadcast RPC (prog, vers, proc, UDP) through portmappers on the net
- Parameters:
baddr- broadcast address, if null, "255.255.255.255" will be used.prog- program number of the RPC servicevers- version number of the RPC serviceproc- procedure number to callargs- input argumentres- result argumenthandler- the reply handler
- See Also:
ReplyHandler
public pmaplist dump(InetAddress inetAddress) throws rpc_err
Get the list of registered RPC servers from portmapper
- Parameters:
inetAddress- internet address of the remote machine
- Returns:
- list of port map entries
public int getPort(InetAddress inetAddress)
throws rpc_errGet the port number of the RPC defined by (prog, vers, proto)
- Parameters:
inetAddress- address at which the RPC server is running
- Returns:
- port number of the server
public static int getPort(String host,
int prog,
int ver,
int proto)
throws rpc_err,
java.net.UnknownHostExceptionThis function returns the server port number.
- Parameters:
host- Server hostnameprog- RPC program numberver- RPC version numberproto- Protocal number
- Returns:
- Server port number
public int getPortTCP(InetAddress inetAddress)
throws rpc_errGet the port number of the RPC defined by (prog, vers, proto), use TCP protocol when communicating with Portmapper
- Parameters:
inetAddress- address at which the RPC server is running
- Returns:
- port number of the server
public static int rmtcall(InetAddress serv,
int prog,
int vers,
int proc,
XDT args,
XDT res,
int timeout)
throws rpc_errCall the RPC (prog, vers, proc, UDP) through the remote portmapper
- Parameters:
serv- remote server addressprog- program number of the RPC servicevers- version number of the RPC serviceproc- procedure number to callargs- input argumentres- result argumenttimeout- Timeout value
public boolean set(InetAddress inetAddress)
Add the entry (prog, ver, proto, port) to the portmapper service.
- Parameters:
inetAddress- address of the server where portmapper is running
- Returns:
- true on success, false on failure
public boolean unset(InetAddress inetAddress)
Remove the entry (prog, ver, proto, port) from the portmapper service
- Parameters:
inetAddress- address of the server where portmapper is running
- Returns:
- true on success, false on failure