org.gregoire.portknock.server
Class AsyncServerImpl

java.lang.Object
  extended byorg.gregoire.portknock.server.Server
      extended byorg.gregoire.portknock.server.AsyncServerImpl

public class AsyncServerImpl
extends Server

Generic AsyncIO server

Version:
0.0.1
Author:
Paul Gregoire

Nested Class Summary
 class AsyncServerImpl.SocketHandler
           
 
Field Summary
protected  java.util.LinkedList nextChannelList
           
 
Fields inherited from class org.gregoire.portknock.server.Server
host, list, logger, port, portDelay, ports, REGEX_IPADDRESS, timeout, type
 
Constructor Summary
AsyncServerImpl(java.lang.String type)
           
 
Method Summary
 void init()
          Initializes the server.
 void listen()
          Accept connections for current server.
 
Methods inherited from class org.gregoire.portknock.server.Server
getClientTimeout, getInetAddress, getType, setClientTimeout, setHost, setPort, setPortDelay, setPorts, setSocketTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextChannelList

protected java.util.LinkedList nextChannelList
Constructor Detail

AsyncServerImpl

public AsyncServerImpl(java.lang.String type)
Method Detail

init

public void init()
          throws java.io.IOException
Description copied from class: Server
Initializes the server.

Specified by:
init in class Server
Throws:
java.io.IOException

listen

public void listen()
Description copied from class: Server
Accept connections for current server.

Specified by:
listen in class Server


Copyright © Paul Gregoire, All Rights Reserved.