Skip to content
Snippets Groups Projects
Commit b3056d7e authored by brutzman's avatar brutzman
Browse files

user name as part of the multicast packet message

parent 67f78601
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ import java.net.*;
/**
* Looks a lot like UdpSender. Start this after launching MulticastReceiver.
*
* Privacy note: this sender advertises your user name as part of the multicast packet message
*
* @author mcgredo
* @author brutzman
*/
......@@ -52,6 +54,7 @@ public class MulticastSender {
if (index < loopSize - 1)
{
// Put together an updated packet to send
dos.writeChars(System.getProperty("user.name") + ": ");
dos.writeChars("MulticastSender packet " + Integer.toString(index) + ";"); // string chars for readability
dos.writeInt (index); // arbitrary data, needs Java or byte-alignment to read
dos.writeFloat(17.0f); // arbitrary data, needs Java or byte-alignment to read
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment