Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Freenet.message
Class Echo  view Echo download Echo.java

java.lang.Object
  extended byFreenet.Message
      extended byFreenet.message.Echo

public class Echo
extends Freenet.Message

This implements a simple echo message which will pass through several nodes, and then pass back through them again.


Field Summary
static java.lang.String messageName
           
 Freenet.Address[] visits
           
 
Fields inherited from class Freenet.Message
depth, hopsToLive, id, keepAlive, receivedAt, receivedWith, source
 
Constructor Summary
Echo(long idnum, long htl, Freenet.Address[] v)
          Creates a new echo message which will pass through all nodes specified in v, and then back again - eventually returning to the user.
Echo(Freenet.RawMessage r)
           
 
Method Summary
 Freenet.MessageMemory pReceived(Freenet.node.Node n, Freenet.MessageMemory sb)
          An overridable version of the received message.
 Freenet.RawMessage toRawMessage()
           
 
Methods inherited from class Freenet.Message
initSources, popField, received, sendBack, sending, sending, sendReply, timeOut, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageName

public static final java.lang.String messageName
See Also:
Constant Field Values

visits

public Freenet.Address[] visits
Constructor Detail

Echo

public Echo(long idnum,
            long htl,
            Freenet.Address[] v)
Creates a new echo message which will pass through all nodes specified in v, and then back again - eventually returning to the user.


Echo

public Echo(Freenet.RawMessage r)
     throws Freenet.InvalidMessageException
Method Detail

toRawMessage

public Freenet.RawMessage toRawMessage()

pReceived

public Freenet.MessageMemory pReceived(Freenet.node.Node n,
                                       Freenet.MessageMemory sb)
Description copied from class: Freenet.Message
An overridable version of the received message.