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


Field Summary
protected  GUID guid
           
protected  byte hops
           
protected  Connection originatingConnection
           
protected  short[] payload
           
protected  int payloadSize
           
static int SIZE
           
protected  byte ttl
           
protected  short type
           
 
Constructor Summary
PingMessage()
          Ping message queries for hosts No payload on this message
 
Method Summary
 Connection getOriginatingConnection()
          Get the connection that was the source for this message
 java.lang.String toRawString()
          Returns a String containing the flattened message
 java.lang.String toString()
          String representation of the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

PingMessage

public PingMessage()
Ping message queries for hosts No payload on this message
Method Detail

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