com.limegroup.gnutella
Class BrowseHostHandler
java.lang.Object
com.limegroup.gnutella.BrowseHostHandler
- public class BrowseHostHandler
- extends java.lang.Object
Handles all stuff necessary for browsing of networks hosts.
Has a instance component, one per browse host, and a static Map of instances
that is used to coordinate between replies to PushRequests.
Method Summary |
void |
browseHost(java.lang.String host,
int port,
java.util.Set proxies)
Browses the files on the specified host and port. |
static boolean |
handlePush(int index,
GUID serventID,
java.net.Socket socket)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowseHostHandler
public BrowseHostHandler(ActivityCallback callback,
GUID guid,
GUID serventID)
- Parameters:
callback
- A instance of a ActivityCallback, so I can notify it of
incoming QReps...guid
- The GUID you have associated on the front end with the
results of this Browse Host request.serventID
- May be null, non-null if I need to push
browseHost
public void browseHost(java.lang.String host,
int port,
java.util.Set proxies)
- Browses the files on the specified host and port.
- Parameters:
host
- The IP of the host you want to browse.port
- The port of the host you want to browse.proxies
- the Set of push proxies to try
handlePush
public static boolean handlePush(int index,
GUID serventID,
java.net.Socket socket)
throws java.io.IOException
- Returns:
- true if the Push was handled by me.
- Throws:
java.io.IOException