|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.Endpoint
com.limegroup.gnutella.EndpointData
| Field Summary | |
static int |
DEFAULT_SPEED
set the default speed to be 56k |
| Fields inherited from class com.limegroup.gnutella.Endpoint |
processed |
| Constructor Summary | |
EndpointData(byte[] hostBytes,
int port)
Creates a new EndpointData instance |
|
EndpointData(byte[] hostBytes,
int port,
long speed)
Creates a new EndpointData instance |
|
EndpointData(byte[] hostBytes,
int port,
long files,
long kbytes)
Creates a new EndpointData instance |
|
EndpointData(Endpoint endpoint)
Creates a new EndpointData instance from another endpoint |
|
EndpointData(Endpoint endpoint,
long speed)
Creates a new EndpointData instance |
|
EndpointData(java.lang.String hostname,
int port)
Creates a new EndpointData instance |
|
| Method Summary | |
long |
getSpeed()
returns the speed of the host |
void |
setSpeed(long speed)
Sets the speed and clientGUID for the host this endpoint refers to |
| Methods inherited from class com.limegroup.gnutella.Endpoint |
clone, compareTo, equals, getConnectivity, getFiles, getHostBytes, getHostname, getKbytes, getPort, getWeight, hashCode, isPrivateAddress, isSameSubnet, normalizeFilesAndSize, setConnectivity, setFiles, setHostname, setKbytes, setWeight, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_SPEED
| Constructor Detail |
public EndpointData(Endpoint endpoint)
endpoint - from where to copy the fields
public EndpointData(java.lang.String hostname,
int port)
hostname - Hostname of the node this endpoint refers toport - The port number for the host
public EndpointData(byte[] hostBytes,
int port)
hostBytes - IP address of the host (MSB first)port - The port number for the host
public EndpointData(byte[] hostBytes,
int port,
long speed)
hostBytes - IP address of the host (MSB first)port - The port number for the hostspeed - Spped in kbps of the host
public EndpointData(byte[] hostBytes,
int port,
long files,
long kbytes)
hostBytes - IP address of the host (MSB first)port - The port number for the hostfiles - the number of files the host haskbytes - the size of all of the files, in kilobytes
public EndpointData(Endpoint endpoint,
long speed)
endpoint - from where to copy the fields for the super classspeed - Speed of the host| Method Detail |
public long getSpeed()
public void setSpeed(long speed)
speed - Speed of the host
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||