|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.Contract
drcl.inet.contract.PktSending
The packet sending contract. This constract defines three packet sending services at the reactor:
DefaultForwarding
InetPacket. Upon receipt of such
a packet, the reactor should perform routing table lookup to determine the
outgoing interface(s) at which the packet is sent.
int) of value that indicates which sending
service should be applied to this sending,
InetPacket) to be sent,
int[]).
ExclusiveBroadcasting
getForwardPack(...),
getMcastPack()s
and getBcastPack(...)s),
at least one for each sending service,
to faciliate constructing the sending packages at the initiator.
These methods are useful in implementing the protocols that are right above
the core service layer.
CoreServiceLayer| Nested Class Summary | |
static class |
PktSending.Message
|
| Field Summary | |
static int |
BROADCAST
|
static PktSending |
INSTANCE
|
static int |
MULTICAST
|
| Fields inherited from class drcl.comp.Contract |
Role_INITIATOR, Role_PEER, Role_REACTOR |
| Constructor Summary | |
PktSending()
|
|
PktSending(int role_)
|
|
| Method Summary | |
static PktSending.Message |
getBcastPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int excludedIf_)
Creates and returns an exclusive-broadcasting request. |
static PktSending.Message |
getBcastPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] excludedIfs_)
Creates and returns an exclusive-broadcasting request. |
static PktSending.Message |
getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int excludedIf_)
Creates and returns an exclusive-broadcasting request. |
static PktSending.Message |
getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] excludedIfs_)
Creates and returns an exclusive-broadcasting request. |
static PktSending.Message |
getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] excludedIfs_,
long nexthop_)
Creates and returns an exclusive-broadcasting request. |
static PktSending.Message |
getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int excludedIf_,
long nexthop_)
Creates and returns an exclusive-broadcasting request. |
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
static InetPacket |
getForwardPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_)
Creates and returns a default-forwarding request. |
static InetPacket |
getForwardPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_)
Creates and returns a default-forwarding request. |
static PktSending.Message |
getMcastPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] ifs_)
Creates and returns an explicit-multicasting request. |
static PktSending.Message |
getMcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] ifs_)
Creates and returns an explicit-multicasting request. |
java.lang.String |
getName()
|
| Methods inherited from class drcl.comp.Contract |
getRole, match, setRole |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final PktSending INSTANCE
public static final int MULTICAST
public static final int BROADCAST
| Constructor Detail |
public PktSending()
public PktSending(int role_)
| Method Detail |
public java.lang.String getName()
getName in class Contractpublic java.lang.Object getContractContent()
Contract
getContractContent in class Contract
public static InetPacket getForwardPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_)
pkt_ - the packet.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.
public static InetPacket getForwardPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_)
pkt_ - the packet.pktsize_ - the packet size.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.
public static PktSending.Message getMcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] ifs_)
pkt_ - the packet.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.ifs_ - indices of the interfaces to forward the packet on.
public static PktSending.Message getMcastPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] ifs_)
pkt_ - the packet.pktsize_ - the packet size.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.ifs_ - indices of the interfaces to forward the packet on.
public static PktSending.Message getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int excludedIf_,
long nexthop_)
pkt_ - the packet.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.excludedIf_ - index of the interface to be excluded from
forwarding of the packet.nexthop_ - address of the next hop
public static PktSending.Message getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] excludedIfs_,
long nexthop_)
pkt_ - the packet.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.nexthop_ - address of the next hop
public static PktSending.Message getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int excludedIf_)
pkt_ - the packet.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.excludedIf_ - index of the interface to be excluded from
forwarding of the packet.
public static PktSending.Message getBcastPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int excludedIf_)
pkt_ - the packet.pktsize_ - the packet size.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.excludedIf_ - index of the interface to be excluded from
forwarding of the packet.
public static PktSending.Message getBcastPack(Packet pkt_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] excludedIfs_)
pkt_ - the packet.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.
public static PktSending.Message getBcastPack(java.lang.Object pkt_,
int pktsize_,
long src_,
long dest_,
boolean routerAlert_,
int ttl_,
long tos_,
int[] excludedIfs_)
pkt_ - the packet.pktsize_ - the packet size.src_ - source.dest_ - destination.routerAlert_ - "router alert" flag.ttl_ - "time-to-live".tos_ - type of service.
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||