org.neo.swarm.services.tcp
Class TcpServer
java.lang.Object
org.neo.swarm.services.tcp.TcpServer
- All Implemented Interfaces:
- Service, org.picocontainer.Startable, TcpService
- public class TcpServer
- extends java.lang.Object
- implements TcpService
NBIO Tcp Server
- Author:
- neil.avery
|
Field Summary |
static java.lang.String |
NAME
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
TcpServer
public TcpServer(java.net.InetAddress host,
int port,
ListenCallback scr,
ThreadPool threadPool)
start
public void start()
- Specified by:
start in interface org.picocontainer.Startable
stop
public void stop()
- Specified by:
stop in interface org.picocontainer.Startable
setTimeout
public void setTimeout(int timeout)
- Parameters:
timeout - The timeout to set.
getName
public java.lang.String getName()
- Specified by:
getName in interface Service
setName
public void setName(java.lang.String name)
Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.