All Packages Class Hierarchy This Package Previous Next Index
Class netbula.ORPC.Pmap
java.lang.Object
|
+----netbula.ORPC.Pmap
- public class Pmap
- extends Object
- implements XDT
The Pmap class is the interface to the portmapper.
It can query the portmapper, it can also perform broadcast RPCs.
-
PMAPPORT
-
-
PMAPPROC_CALLIT
-
-
PMAPPROC_DUMP
-
-
PMAPPROC_GETPORT
-
-
PMAPPROC_NULL
-
-
PMAPPROC_SET
-
-
PMAPPROC_UNSET
-
-
PMAPPROG
-
-
PMAPVERS
-
-
PMAPVERS_ORIG
-
-
PMAPVERS_PROTO
-
-
port
-
-
prog
-
-
prot
-
-
vers
-
-
Pmap()
-
-
Pmap(int, int, int, int)
- When adding an entry to portmapper, one needs to use this
constructor and then call the set() method.
-
broadcastCall(String, int, int, int, XDT, XDT, ReplyHandler)
- Broadcast RPC (prog, vers, proc, UDP) through portmappers on the net
-
Clone()
-
-
dump(InetAddress)
- Get the list of registered RPC servers from portmapper
-
getArray(int)
-
-
getPort(InetAddress)
- Get the port number of the RPC defined by (prog, vers, proto)
-
rmtcall(InetAddress, int, int, int, XDT, XDT, int)
- Call the RPC (prog, vers, proc, UDP) through the remote portmapper
-
set(InetAddress)
- Add the entry (prog, ver, proto, port) to the portmapper service.
-
unset(InetAddress)
- Remove the entry (prog, ver, proto, port) from the portmapper service
-
xdr(XDR)
-
PMAPPORT
public static final int PMAPPORT
PMAPPROG
public static final int PMAPPROG
PMAPVERS
public static final int PMAPVERS
PMAPVERS_PROTO
public static final int PMAPVERS_PROTO
PMAPVERS_ORIG
public static final int PMAPVERS_ORIG
PMAPPROC_NULL
public static final int PMAPPROC_NULL
PMAPPROC_SET
public static final int PMAPPROC_SET
PMAPPROC_UNSET
public static final int PMAPPROC_UNSET
PMAPPROC_GETPORT
public static final int PMAPPROC_GETPORT
PMAPPROC_DUMP
public static final int PMAPPROC_DUMP
PMAPPROC_CALLIT
public static final int PMAPPROC_CALLIT
prog
public int prog
vers
public int vers
prot
public int prot
port
public int port
Pmap
public Pmap()
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.
Clone
public XDT Clone()
getArray
public XDT[] getArray(int len)
xdr
public void xdr(XDR xdrs) throws XDRError
set
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
unset
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
getPort
public int getPort(InetAddress inetAddress) throws rpc_err
- Get 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
dump
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
rmtcall
public static int rmtcall(InetAddress serv,
int prog,
int vers,
int proc,
XDT args,
XDT res,
int timeout) throws rpc_err
- Call the RPC (prog, vers, proc, UDP) through the remote portmapper
- Parameters:
- serv - remote server address
- prog - program number of the RPC service
- vers - version number of the RPC service
- proc - procedure number to call
- args - input argument
- res - result argument
- timeout - Timeout value
broadcastCall
public static boolean broadcastCall(String baddr,
int prog,
int vers,
int proc,
XDT args,
XDT res,
ReplyHandler handler) throws rpc_err
- Broadcast 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 service
- vers - version number of the RPC service
- proc - procedure number to call
- args - input argument
- res - result argument
- handler - the reply handler
- See Also:
- ReplyHandler
All Packages Class Hierarchy This Package Previous Next Index