|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.net.TcpPortSelector
public class TcpPortSelector
An instance of this class is used to perform random port selection on a given host.
| Constructor Summary | |
|---|---|
TcpPortSelector()
|
|
| Method Summary | |
|---|---|
int |
select(java.net.InetAddress addr)
|
int |
select(java.lang.String host)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpPortSelector()
| Method Detail |
|---|
public int select(java.net.InetAddress addr)
throws java.io.IOException
addr - the InetAddress corresponding to the local address
on which to acquire a port.
java.io.IOException - if a problem occurred while acquiring the port.
public int select(java.lang.String host)
throws java.io.IOException
host - the local host address on which to acquire a port.
java.io.IOException - if a problem occurred while acquiring the port.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||