org.neo.swarm.services.tcp
Class TcpServer

java.lang.Object
  extended byorg.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
           
 
Constructor Summary
TcpServer(java.net.InetAddress host, int port, ListenCallback scr, ThreadPool threadPool)
           
 
Method Summary
 java.lang.String getName()
           
 void setName(java.lang.String name)
           
 void setTimeout(int timeout)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

TcpServer

public TcpServer(java.net.InetAddress host,
                 int port,
                 ListenCallback scr,
                 ThreadPool threadPool)
Method Detail

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.