All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.antsr.apps.mobile.MobileCapsule
java.lang.Object
|
+----edu.utah.janos.antsr.core.Capsule
|
+----edu.utah.janos.antsr.apps.mobile.MobileCapsule
public class MobileCapsule
extends edu.utah.janos.antsr.core.Capsule
{
// Fields 6
private static final byte[] MID;
private static final byte[] PID;
ByteArray data;
short dpt;
int next;
short spt;
// Constructors 2
public MobileCapsule();
public MobileCapsule(int, short, short, ByteArray);
// Methods 6
public Xdr decode();
public Xdr encode();
public boolean evaluate(Node);
public int length();
protected byte[] mid();
protected byte[] pid();
}
mobile capsule processing - The mobile capsule is used to carry a payload.
Its able to lookup any forwarding information on a router to direct itself
properly.
- Author:
-
David Wetherall
private static final byte[] MID
private static final byte[] PID
int next
The next destination for the capsule. First, points to the original
destination, and then to a forwarding address if there is one.
short spt
Source and destination port...
short dpt
ByteArray data
The data we're sending
public MobileCapsule()
public MobileCapsule(int na,
short sa,
short da,
ByteArray d)
protected byte[] mid()
- Overrides:
- mid in class Capsule
protected byte[] pid()
- Overrides:
- pid in class Capsule
public int length()
- Overrides:
- length in class Capsule
public Xdr encode()
- Overrides:
- encode in class Capsule
public Xdr decode()
- Overrides:
- decode in class Capsule
public boolean evaluate(Node n)
Check for a forwarding address and then ship the packet
- Overrides:
- evaluate in class Capsule
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7