LimeWire Consolidated API

org.limewire.nio.observer
Interface AcceptChannelObserver

All Superinterfaces:
IOErrorObserver, Shutdownable
All Known Implementing Classes:
NIOServerSocket, TLSNIOServerSocket

public interface AcceptChannelObserver
extends IOErrorObserver

Defines the interface that allows SocketChannel accept events to be received. Classes that listen on a socket are notified of new connections through this interface.


Method Summary
 void handleAcceptChannel(SocketChannel channel)
          Notification that a SocketChannel has been accepted.
 
Methods inherited from interface org.limewire.nio.observer.IOErrorObserver
handleIOException
 
Methods inherited from interface org.limewire.nio.observer.Shutdownable
shutdown
 

Method Detail

handleAcceptChannel

void handleAcceptChannel(SocketChannel channel)
                         throws IOException
Notification that a SocketChannel has been accepted. The channel is in non-blocking mode.

Throws:
IOException

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.