org.gregoire.portknock.server
Class NIOServerImpl

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

public class NIOServerImpl
extends Server

Generic NIO server

Version:
0.0.1
Author:
Paul Gregoire

Nested Class Summary
 class NIOServerImpl.SocketHandler
           
 
Field Summary
 
Fields inherited from class org.gregoire.portknock.server.Server
host, list, logger, port, portDelay, ports, REGEX_IPADDRESS, timeout, type
 
Constructor Summary
NIOServerImpl(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
 

Constructor Detail

NIOServerImpl

public NIOServerImpl(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.