|
ANTS v2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.core.Capsule | +--ants.core.DLResponseCapsule
Demand Load Response capsule. DLResponseCapsules are only created by a DLRequestCapsule that has been delivered to a node that can satisfy the request. DLResponseCapsules contain a single "chunk" of a CodeGroup.
A DLResponseCapsule packet contains the following fields (on top of the base Capsule fields):
DLProtocol
,
DLRequestCapsule
,
CodeGroup
Field Summary | |
static java.lang.String |
VERSION
|
Fields inherited from class ants.core.Capsule |
MAX_TTL |
Method Summary | |
Xdr |
decode()
Decode a capsule header from this Capsule's xdr field. |
Xdr |
encode()
Encode this capsule's header into a new Xdr. |
boolean |
evaluate(Node node)
Evalute a DLResponseCapsule at this node. |
int |
length()
Return the length of the capsule header that all capsule encodings will include. |
java.lang.String |
toString()
String representation of a Capsule. |
Methods inherited from class ants.core.Capsule |
create,
encodeCapsuleForSend,
findExtension,
findMID,
findPID,
getDst,
getPrevious,
getSrc,
getTTL,
prime,
setDst |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
Method Detail |
public int length()
public Xdr encode()
Because this header must go first in the Xdr, this encoder unilaterally sets the xdr buffer pointer to the beginning of the buffer and writes its data there.
The format of the Xdr is:
MethodID (16 bytes) src address ( 4 bytes) dst address ( 4 bytes) previous address ( 4 bytes) TTL ( 4 bytes)
#xdr
public Xdr decode()
public boolean evaluate(Node node)
XXX should deal with unanticipated DLResponseCapsules better.
node
- the local node interfacepublic java.lang.String toString()
|
ANTS v2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |