org.activeio
Interface AcceptListener

All Known Implementing Classes:
AsyncToSyncChannelServer, FilterAsyncChannelServer

public interface AcceptListener

An AcceptListener object is used to receive accepted Channel connections.

Version:
$Revision$

Method Summary
 void onAccept(Channel channel)
          A AsyncChannelServer will call this method to when a new channel connection has been accepted.
 void onAcceptError(IOException error)
          A AsyncChannelServer will call this method when a async failure occurs when accepting a connection.
 

Method Detail

onAccept

public void onAccept(Channel channel)
A AsyncChannelServer will call this method to when a new channel connection has been accepted.

Parameters:
channel -

onAcceptError

public void onAcceptError(IOException error)
A AsyncChannelServer will call this method when a async failure occurs when accepting a connection.

Parameters:
error - the exception that describes the failure.


Copyright © -2007 The ActiveIO Project. All Rights Reserved.