|
LimeWire Consolidated API | |||||||||
| 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
public class EndpointData
Simple serializable wrapper for Endpoint.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.limewire.io.IpPort |
|---|
IpPort.IpComparator, IpPort.IpPortComparator |
| Nested classes/interfaces inherited from interface org.limewire.io.Address |
|---|
Address.EventType |
| Field Summary |
|---|
| Fields inherited from interface org.limewire.io.Connectable |
|---|
COMPARATOR, EMPTY_LIST, EMPTY_SET |
| Fields inherited from interface org.limewire.io.IpPort |
|---|
IP_COMPARATOR |
| 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(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, equals, getAddress, getAddressDescription, getFiles, getHostBytes, getInetAddress, getInetSocketAddress, getKbytes, getPort, hashCode, isSameSubnet, isTLSCapable, isUDPHostCache, normalizeFilesAndSize, setFiles, setHostname, setKbytes, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EndpointData(Endpoint endpoint)
endpoint - from where to copy the fields
public EndpointData(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 hostclientGUID - Unique GUID for the host| Method Detail |
|---|
public long getSpeed()
public void setSpeed(long speed)
speed - Speed of the host
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||