|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.endpoint.tcp.IncomingUnicastServer
public class IncomingUnicastServer
This server handles incoming unicast TCP connections
Constructor Summary | |
---|---|
IncomingUnicastServer(TcpTransport owner,
InetAddress serverInterface,
int preferedPort,
int startPort,
int endPort)
Constructor for the TCP server |
Method Summary | |
---|---|
(package private) int |
getEndPort()
Get the end port range we are using |
(package private) InetSocketAddress |
getLocalSocketAddress()
Get the address of the network interface being used. |
(package private) int |
getStartPort()
Get the start port range we are using |
List<Integer> |
rangeCheckShuffle(int start,
int end)
|
void |
run()
Daemon where we wait for incoming connections. |
boolean |
start()
Start this server. |
void |
stop()
Stop this server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IncomingUnicastServer(TcpTransport owner, InetAddress serverInterface, int preferedPort, int startPort, int endPort) throws IOException, SecurityException
owner
- the TCP transport we are working forserverInterface
- the network interface to use.preferedPort
- the port we will be listening on.startPort
- starting portendPort
- the endport in port range
IOException
- if an io severe occurs
SecurityException
- if a security exception occursMethod Detail |
---|
public boolean start()
public void stop()
InetSocketAddress getLocalSocketAddress()
int getStartPort()
int getEndPort()
public void run()
run
in interface Runnable
public List<Integer> rangeCheckShuffle(int start, int end)
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |