net.anotheria.net.shared.server
Class ServerLogger

java.lang.Object
  extended by net.anotheria.net.shared.server.ServerLogger
All Implemented Interfaces:
IConnectionListener, IServerListener

public class ServerLogger
extends Object
implements IServerListener, IConnectionListener

A server and connection listener which just prints out to system-out.

Author:
another

Constructor Summary
ServerLogger(IServer targetServer)
           
 
Method Summary
 void connectionClosed(IConnection connection)
          Called whenever a connection has been closed.
 void connectionCreated(IConnection connection)
           
 void connectionOpened(IConnection connection)
          Called whenever a connection has been opened
 void connectionRemoved(IConnection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLogger

public ServerLogger(IServer targetServer)
Method Detail

connectionClosed

public void connectionClosed(IConnection connection)
Description copied from interface: IConnectionListener
Called whenever a connection has been closed.

Specified by:
connectionClosed in interface IConnectionListener
Parameters:
connection - the connection that has been closed

connectionOpened

public void connectionOpened(IConnection connection)
Description copied from interface: IConnectionListener
Called whenever a connection has been opened

Specified by:
connectionOpened in interface IConnectionListener
Parameters:
connection - the connection that has been opened.

connectionCreated

public void connectionCreated(IConnection connection)
Specified by:
connectionCreated in interface IServerListener

connectionRemoved

public void connectionRemoved(IConnection connection)
Specified by:
connectionRemoved in interface IServerListener


Copyright © 2010-2013 anotheria.net. All Rights Reserved.