LimeWire Consolidated API

org.limewire.net
Interface ConnectionAcceptor

All Known Subinterfaces:
ConnectionManager, TorrentManager
All Known Implementing Classes:
AcceptorImpl, BasicHttpAcceptor, ConnectionManagerImpl, ControlRequestAcceptor, HTTPAcceptor, LocalHTTPAcceptor, PushDownloadManager, TorrentManagerImpl

public interface ConnectionAcceptor

Objects of this type can be notified whenever a new connection is established and the first word on the wire is read. The objects are responsible for registering themselves with the ConnectionDispatcher.


Method Summary
 void acceptConnection(String word, Socket s)
          Notification that a new incoming socket has been opened.
 boolean isBlocking()
          Returns true, if acceptConnection(String, Socket) needs to be invoked in a separate thread.
 

Method Detail

acceptConnection

void acceptConnection(String word,
                      Socket s)
Notification that a new incoming socket has been opened.

Parameters:
word - first word that arrived on the wire
s - the newly opened socket.

isBlocking

boolean isBlocking()
Returns true, if acceptConnection(String, Socket) needs to be invoked in a separate thread.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.