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

Quick Search    Search Deep

Freenet.message
Class DataSend  view DataSend download DataSend.java

java.lang.Object
  extended byFreenet.Message
      extended byFreenet.message.DataSend
Direct Known Subclasses:
DataInsert, DataReply

public abstract class DataSend
extends Freenet.Message

This is the DataReply message


Field Summary
 Freenet.Address dataSource
           
 java.io.InputStream in
           
 java.lang.Long length
           
 
Fields inherited from class Freenet.Message
depth, hopsToLive, id, keepAlive, messageName, receivedAt, receivedWith, source
 
Constructor Summary
DataSend(long idnum, long htl, long depth, Freenet.Address dsrc)
           
DataSend(long idnum, long htl, long depth, Freenet.Address dsrc, Freenet.node.Data data)
           
DataSend(Freenet.RawMessage raw)
           
 
Method Summary
 Freenet.MessageMemory pReceived(Freenet.node.Node n, Freenet.MessageMemory sb)
          Called by a node after it receives this message
 void sending(Freenet.Core n, Freenet.Address peer, Freenet.Address myAddress)
          Called just before the message is sent, and makes any last minute changes.
protected  Freenet.MessageMemory timeOut(Freenet.node.Node n, Freenet.MessageMemory sb)
           
 Freenet.RawMessage toRawMessage()
           
 
Methods inherited from class Freenet.Message
initSources, popField, received, sendBack, sending, sendReply, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

in

public java.io.InputStream in

length

public java.lang.Long length

dataSource

public Freenet.Address dataSource
Constructor Detail

DataSend

public DataSend(long idnum,
                long htl,
                long depth,
                Freenet.Address dsrc)

DataSend

public DataSend(long idnum,
                long htl,
                long depth,
                Freenet.Address dsrc,
                Freenet.node.Data data)
         throws Freenet.node.DataNotReadyException,
                java.io.IOException

DataSend

public DataSend(Freenet.RawMessage raw)
         throws Freenet.InvalidMessageException
Method Detail

toRawMessage

public Freenet.RawMessage toRawMessage()

pReceived

public Freenet.MessageMemory pReceived(Freenet.node.Node n,
                                       Freenet.MessageMemory sb)
Called by a node after it receives this message


sending

public void sending(Freenet.Core n,
                    Freenet.Address peer,
                    Freenet.Address myAddress)
             throws Freenet.SendFailedException
Description copied from class: Freenet.Message
Called just before the message is sent, and makes any last minute changes.


timeOut

protected Freenet.MessageMemory timeOut(Freenet.node.Node n,
                                        Freenet.MessageMemory sb)