demo.howto
Class DDHowto.Pong

java.lang.Object
  |
  +--dd.api.DDRouteMsg
        |
        +--demo.howto.DDHowto.Pong
All Implemented Interfaces:
QueueElementIF, QuickSerializable
Enclosing class:
DDHowto

public static class DDHowto.Pong
extends DDRouteMsg

This class is identical in all by type from the DDHowto.Ping class, so I'm not going to comment it further.


Field Summary
 int seq
          sequence number to keep track of ping/pong.
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
DDHowto.Pong(InputBuffer buffer)
          Constructs a Pong from its serialized form.
DDHowto.Pong(SecureHash dest, boolean recursive, boolean dd_intermediate_upcall, boolean one_hop, int seq)
          Constructor: Creates a new Pong.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

seq

public int seq
sequence number to keep track of ping/pong.

Constructor Detail

DDHowto.Pong

public DDHowto.Pong(SecureHash dest,
                    boolean recursive,
                    boolean dd_intermediate_upcall,
                    boolean one_hop,
                    int seq)
Constructor: Creates a new Pong.


DDHowto.Pong

public DDHowto.Pong(InputBuffer buffer)
Constructs a Pong from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class DDRouteMsg

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object