com.kenmccrary.jtella
Class PongMessage

java.lang.Object
  |
  +--com.kenmccrary.jtella.Message
        |
        +--com.kenmccrary.jtella.PongMessage

public class PongMessage
extends com.kenmccrary.jtella.Message

A Pong message is sent in reply to a Ping and provides host information


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