Middleware for semantic multicast in spontaneous multi-hop networks