|
Project 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 |
void |
run()
Daemon where we wait for incoming connections. |
boolean |
start(ThreadGroup inGroup)
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.
IOException
SecurityException| Method Detail |
|---|
public boolean start(ThreadGroup inGroup)
inGroup - the thread group we should create our threads in.public void stop()
InetSocketAddress getLocalSocketAddress()
int getStartPort()
int getEndPort()
public void run()
run in interface Runnable
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||