com.kenmccrary.jtella
Class PingMessage
java.lang.Object
|
+--com.kenmccrary.jtella.Message
|
+--com.kenmccrary.jtella.PingMessage
- public class PingMessage
- extends com.kenmccrary.jtella.Message
GNUTella Ping message
Constructor Summary |
PingMessage()
Ping message queries for hosts
No payload on this message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SIZE
public static final int SIZE
originatingConnection
protected Connection originatingConnection
guid
protected GUID guid
type
protected short type
ttl
protected byte ttl
hops
protected byte hops
payload
protected short[] payload
payloadSize
protected int payloadSize
PingMessage
public PingMessage()
- Ping message queries for hosts
No payload on this message
toString
public java.lang.String toString()
- String representation of the message
- Overrides:
toString
in class java.lang.Object
toRawString
public java.lang.String toRawString()
- Returns a String containing the flattened message
- Returns:
- message string
getOriginatingConnection
public Connection getOriginatingConnection()
- Get the connection that was the source for this message
- Returns:
- originating connection or null if this
Message
was
not read from the network