Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

multicast problems  RSS feed

Daniil Sosonkin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have two small programs, one server that sends out messages and clients that receive it. Server runs on Linux with two (2) NICs and broadcasts. I've set it to broadcast to and then client joins Otherwise nothing is being received. So the problem is that this client receives one packet twice. Maybe I'm doing something totally wrong. I'd really appreciate if someone took a look at simple code below and point it where its wrong cause I'm totally lost. Btw, if I set server to broadcast to then client receives nothing.

The server:

The client:

[ November 12, 2004: Message edited by: Daniil Sosonkin ]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!