in the hashtable (peer address is the key). All
messages sent to that peer will be added to hashtable.peer_addr.sent_msgs. When we receive a
message from a peer for the first time, another entry will be created and added to the hashtable
(unless already existing). Msgs will then be added to hashtable.peer_addr.received_msgs. This
layer is used to reliably transmit point-to-point messages, that is, either messages sent to a
single receiver (vs. messages multicast to a group) or for example replies to a multicast message. The
sender uses an AckSenderWindow
which retransmits messages for which it hasn't received
an ACK, the receiver uses AckReceiverWindow
which keeps track of the lowest seqno
received so far, and keeps messages in order.
-
UNICAST()
-
-
Down(Event)
- An event is to be sent down the stack.
-
GetName()
- All protocol names have to be unique !
-
Retransmit(long, Message, int)
- Called by AckSenderWindow to resend messages for which no ACK has been received yet
-
SetProperties(Properties)
- Configures the protocol initially.
-
Up(Event)
- An event was received from the layer below.
UNICAST
public UNICAST()
GetName
public String GetName()
- All protocol names have to be unique !
- Overrides:
- GetName in class Protocol
SetProperties
public boolean SetProperties(Properties props)
- Configures the protocol initially.
- Overrides:
- SetProperties in class Protocol
Up
public void Up(Event evt)
- An event was received from the layer below.
- Overrides:
- Up in class Protocol
Down
public void Down(Event evt)
- An event is to be sent down the stack.
- Overrides:
- Down in class Protocol
Retransmit
public void Retransmit(long seqno,
Message msg,
int num_tries)
- Called by AckSenderWindow to resend messages for which no ACK has been received yet
All Packages Class Hierarchy This Package Previous Next Index