package com.limegroup.gnutella; import java.net.Socket; /** * 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. */ public interface ConnectionAcceptor { /** * Notification that a new incoming socket has been * opened. * @param word first word that arrived on the wire * @param s the newly opened socket. */ public void acceptConnection(String word, Socket s); }