ANTS v2.0 API

apps.multicast
Class MulticastCapsule

java.lang.Object
  |
  +--ants.core.Capsule
        |
        +--apps.multicast.MulticastCapsule

public class MulticastCapsule
extends Capsule

Multicast capsule processing. These correspond to the multicast data packets.

Author:
David Wetherall

Fields inherited from class ants.core.Capsule
MAX_TTL
 
Constructor Summary
MulticastCapsule()
           
MulticastCapsule(int group, int target, short destport, ByteArray data)
           
 
Method Summary
 Xdr decode()
          Decode this capsule.
 Xdr encode()
          Encode this capsule.
 boolean evaluate(Node n)
          Process this capsule at the node.
 int length()
          Return the length of this capsule.
 
Methods inherited from class ants.core.Capsule
create, encodeCapsuleForSend, findExtension, findMID, findPID, getDst, getPrevious, getSrc, getTTL, prime, setDst, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MulticastCapsule

public MulticastCapsule()

MulticastCapsule

public MulticastCapsule(int group,
                        int target,
                        short destport,
                        ByteArray data)
Method Detail

length

public int length()
Return the length of this capsule.
Overrides:
length in class Capsule
Tags copied from class: Capsule
Returns:
the length of the capsule header

encode

public Xdr encode()
Encode this capsule.
Overrides:
encode in class Capsule
Tags copied from class: Capsule
Returns:
the new Xdr representing this capsule.
See Also:
#xdr

decode

public Xdr decode()
Decode this capsule.
Overrides:
decode in class Capsule
Tags copied from class: Capsule
Returns:
the new Xdr based on the current xdr.

evaluate

public boolean evaluate(Node n)
Process this capsule at the node.
Overrides:
evaluate in class Capsule
Parameters:
n - The current node.

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/