Research Article

Content-Based Efficient Messages Transmission in WSNs

Algorithm 2

Anycast_notification_deal ().
1 get the from ;
2 for (; i++)
3  if
4   if
5    process in this node;
6   else
7    send the to the ith sub-node;
8   break;
9 return;