amber.server
Interface ConnectionReceiver

All Known Implementing Classes:
LoginManager, LoginThread

public interface ConnectionReceiver

Interface for classes which receive connections from a listener thread.

Version:
1.0.0
Author:
Dr. David J. Knowles
See Also:
Listener

Method Summary
 void addConnection(java.net.Socket socket, int type)
          This function adds a new socket connection to the thread for processing.
 

Method Detail

addConnection

public void addConnection(java.net.Socket socket,
                          int type)
This function adds a new socket connection to the thread for processing. This function will also waken the thread if it is in a suspended state.
Parameters:
socket - Socket which is the incoming connection.
type - int defining the type of connection received. This value corresponds to the constants defined in Listener.
See Also:
Listener


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.