org.siebengeisslein.net
Class ConnectionHandler
java.lang.Object
org.siebengeisslein.util.HasLog
org.siebengeisslein.net.ConnectionHandler
public class ConnectionHandler
- extends HasLog
| Methods inherited from class org.siebengeisslein.util.HasLog |
getLog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionHandler
public ConnectionHandler(int port,
Server server,
MessageDispatcher dispatcher,
Authenticator authenticator)
throws java.io.IOException
- Throws:
java.io.IOException
setServerChannel
protected void setServerChannel(java.nio.channels.ServerSocketChannel serverChannel)
getSelector
protected java.nio.channels.Selector getSelector(int port)
throws java.io.IOException
- Throws:
java.io.IOException
readDataFromSocket
protected void readDataFromSocket(java.nio.channels.SelectionKey key)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()