public interface PortAssigner
extends java.rmi.Remote
PortAssigner assigns and keeps track of anonymous ports. This
feature is to be used by AFUNIXRMISocketFactory only.| Modifier and Type | Method and Description |
|---|---|
int |
newPort()
Registers a new anonymous port and returns it.
|
void |
returnPort(int port)
Returns a previously registered port.
|
int newPort()
throws java.io.IOException
returnPort(int).java.io.IOExceptionvoid returnPort(int port)
throws java.io.IOException
port - java.io.IOException