0

I'm sending data with MulticastSocket in Java. Messages have structure "username: data" and so far I've been doing:

if (!message.startsWith(this.nick + ":"))
{
  // do stuff
}

Is there any way not to send the message to sender at all? This way I just ignore this message, but waste efficiency.

user207421
  • 305,947
  • 44
  • 307
  • 483
qalis
  • 1,314
  • 1
  • 16
  • 44

0 Answers0