| |
|
| java.lang.Object seda.sandStorm.core.SimpleSink seda.sandStorm.lib.Gnutella.GnutellaConnection
GnutellaConnection | public class GnutellaConnection extends SimpleSink implements QueueElementIF,GnutellaConst(Code) | | A GnutellaConnection represents a virtual connection to the
Gnutella network. It may implement a single point-to-point connection
between two peers, or a one-to-many connection to multiple peers.
author: Matt Welsh (mdw@cs.berkeley.edu) |
getAddress | public InetAddress getAddress()(Code) | | Return the InetAddress of the peer. Returns null if this is a
'virtual' connection.
|
getPort | public int getPort()(Code) | | Return the port of the peer. Returns -1 if this is a 'virtual'
connection.
|
sendPing | public void sendPing()(Code) | | Send a ping to this connection.
|
sendPing | public void sendPing(int ttl)(Code) | | Send a ping to this connection with the given TTL.
|
|
|
|