Multicast problem..

G

Guest

Hi,

I'm sending multicast messages UDP socket and C#.
But the receiving clients are not receiving all the messages.
Receiving clients are missing out some messages. When I debug the
server side, the messages are being sent correctly, but receiving side
side is missingout some messages.

What could be the problem and how can we solve this problem.

Cheers,

Naveen.
 
N

Nick Malik [Microsoft]

UDP is not a guaranteed protocol. It is not designed for reliability. It
sounds like you are using the wrong stack!

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
G

Guest

Hi,

I could solve the problem. It was a thread synchronisation problem.
It is working now.

But I've got another question. That is , When I run 2 or more clients on
the same
machine, the first client application is receiving multicast messages but not
the subsequent clients.

I'm using the same, multicast address and port for both of them as
this is the default multicast ip, all the clients automatically register to
this
multicast ip and port number.

For example,

Client 1 - 224.0.0.2 : 14000
Client 2 - 224.0.0.2 : 14000

I'm not sure whether we can do this,
As this is the first time I'm working with IP address and Port numbers,
I don't have muck knowledge in using them.

What could be the problem. Kindly let me know.

Cheers,

Naveen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top