Posted 19 April 2012 - 02:46 AM
Hi all.
I was wondering what people think about the practice of using a unique namespace for broadcast messages to avoid clashes with other programs and whether this should be encouraged.
For example, you want to broadcast a message "activate" to all other computers running your program. Instead of broadcasting "activate", you broadcast "email@example.com#activate" or something like that.
By doing this, and having your program ignore any received messages without your namespace prefix, you avoid any problems if for example another unrelated program broadcasts "activate" for it's own purposes.
So, good idea to encourage this? You do it already? Have a better idea? Discuss.
I was wondering what people think about the practice of using a unique namespace for broadcast messages to avoid clashes with other programs and whether this should be encouraged.
For example, you want to broadcast a message "activate" to all other computers running your program. Instead of broadcasting "activate", you broadcast "email@example.com#activate" or something like that.
By doing this, and having your program ignore any received messages without your namespace prefix, you avoid any problems if for example another unrelated program broadcasts "activate" for it's own purposes.
So, good idea to encourage this? You do it already? Have a better idea? Discuss.