the broadcast xml project

April 2002

upon process startup

Load all the .xml files in the xmlobjects directory. When a new message or other type is created, just drop a new file into this directory.

object type

<type> DisplayMessage </type>
<html> I am the <b>html</b> the client should display on the screen. </html>
<url> http://client.IP/ </url>
The client response upon reception of this message is to render the html and display it.

object type

<type> HostAnnouncement </type>
<name> Pioneer Sq </name>
<IP> </IP>
<url> </url>
<essid> </essid>
The client response is to put up an icon representing this host.

object type

<type> UserAnnouncement </type>
<ircchannel> irc:// </ircchannel>
<ircnick> zerocool </ircnick>
<email> </email>
<url> http://user.home/page </url>
<icon> BINARY IMAGE DATA </icon>
The client response is to put up an icon representing the user.

Im not sure how much data i can put into one UDP packet. There is no notion of a stream. maybe I can mark the data with <bxml_message> and if you havent received a </bxml_message>, then keep appending the subsequent packets to the message.

look into Jabber message types. there is possibly a lot of overlap here.

Want to play with broadcast packets and java? Get this file Run it with 'java -jar shell.jar'. You have one command: speak [message]. This will transmit a UDP packet to address, port 2009. Its it funny how broadcast packets still have port numbers. Any other computer in the same collision domain that is also running shell.jar will pickup on this packet and print to the screen.


BroadcastXml (last edited 2012-03-10 22:47:15 by RussellSenior)