Virtual Networking - ab3nd/TinyRobo GitHub Wiki

Pub/sub model?

Robot publishes a message on a topic (maybe "network broadcast") but robots don't listen to that topic, they listen to "network meduium" or something. Network node figures out distances between robots and only publishes to those robots that are within range (or don't get the transmission dropped because of virtual "network problems").

Can a node only publish to certain subscribers?

Network service

Robot makes a service call to publish to the network. Network service maintains a list of publishers named after the visible robots. Network service publishes to those robots that are within range or whatever. This seems a lot cleaner.