🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

And the Messages are ROUTING!!!

posted in Septopus for project Unsettled World
Published November 11, 2018
Advertisement

I have succeeded in creating a cross-platform, custom combination MQTT Client/Broker or "MQTT Router" that can Route messages to other MQTT Brokers/Routers.  They dynamically build connections to each other and test route latency.  They currently do NOT do any best route calculations.  But that is only a small behavioral ability that I can add at a later date and still feel like it's totally functional right now. :D

In the below images you will see 3 windows,

  • TOP = PRIMARY Router(Kinda like a DNS server, it distributes the Router hellos around so everybody knows where everybody else is.
  • MIDDLE = PEER Router #1 on Linux
  • BOTTOM = PEER Router #2 on Windows

 

Here you see the three servers connecting and subscribing to each other's publications and whatnot.

MQTT_router_ROUTING_peers_connecting.thumb.png.77295de200ac07ae90722d83ae3d5ed4.png

 

Here the Route-able message is submitted to the PRIMARY, Routed Through PEER#2  for  PEER#1

MQTT_router_ROUTING-primary-peer2-peer1.thumb.png.eaa952e125845abe103413cc466c3680.png

 

Submitted to PRIMARY, Routing Through PEER#1  for  PEER#2

MQTT_router_ROUTING-primary-peer1-peer2.thumb.png.aba67fb5c12d534c9d1ff51f1f5a1c23.png

 

And Submitted to PEER#2, Routed Through PEER#1  for  PRIMARY

MQTT_router_ROUTING-peer2-peer1-primary.thumb.png.16564a85b3f098175f7eea84cca151c4.png

 

Not the most interesting screen shots, maybe I'll put together a little video showing it in ACTION! ;) haha..

Either way, a few days of hacking and I now have the core of my Content Delivery Network, at least ready for the next phase of integration and testing.

Time to get back to writing the actual GAME SERVERS!!  hahaha

I've got some serious refactoring and whatnot before I post any of this code though, so please be patient if you're actually interested in seeing it. :D

 

 

1 likes 0 comments

Comments

jbadams

Success! :)

November 12, 2018 01:18 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement