Research Article
A Socially Aware Routing Based on Local Contact Information in Delay-Tolerant Networks
Algorithm 2
Message forwarding procedure when a node
tries to deliver the message to the destination node
.
| (1) upon reception of a Hello message from a node do | | (2) if then | | (3) if then | | (4) forward the message destined for the node to the node | | (5) if for all then | | (6) delete the message destined for the node from the node ’s buffer | | (7) end if | | (8) else if then | | (9) forward the message destined for the node to the node | | (10) end if | | (11) end if |
|