473,503 Members | 8,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multicast problem..

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.
Nov 16 '05 #1
2 2087
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.
--
"Naveen Mukkelli" <Na************@discussions.microsoft.com> wrote in
message news:F3**********************************@microsof t.com...
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.

Nov 16 '05 #2
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.
"Nick Malik [Microsoft]" wrote:
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.
--
"Naveen Mukkelli" <Na************@discussions.microsoft.com> wrote in
message news:F3**********************************@microsof t.com...
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.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3336
by: Alfred B. Thordarson | last post by:
Hi All. I have this weird problem that on my devlepment machine (Windows XP) I don't receive MultiCast messages that I send from my machine. This means that my two processes can't communicate...
6
6475
by: PHLICS_Admin | last post by:
Hi All, There are two network cards in one computer (named A) , and there is one network card in another computer(named B). On computer A: one network card is used to connect to internet, and...
2
530
by: Jim H | last post by:
Is there something special I need to do to send data to a multicast IP and have it go across a router? Router is a Win2000 Server connecting 2 networks via RRAS PPTP. The routing appears to be...
1
280
by: Naveen Mukkelli | last post by:
Hi, 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...
1
3385
by: Christoph Nahr | last post by:
The task: I want to let a background thread and a Windows Forms foreground thread communicate via callback methods. Now synchronization of a *single* delegate works just fine with the usual...
2
3107
by: Terry | last post by:
I've got a strange problem receiving multicast packets in a C# application. What's strange is that it works *sometimes* but not always. I create a socket, call bind(), set the multicast socket...
7
8415
by: pietro.cerutti | last post by:
Hi guys, I have a daemon running on Debian and listening for multicast packets sent to 224.0.0.251:5353 (ZeroConf Multicast DNS queries). The server is plugged into a VLAN trunk with eth0 and...
1
4147
by: Jayme.Pechan | last post by:
I was working on a multicast client and ran into a possible problem. Here is the code... udpClient = new UdpClient(4000); udpClient.JoinMulticastGroup(IPAddress.Parse("224.1.1.1"));...
5
8894
by: AliRezaGoogle | last post by:
Hi, I have a conceptual question on Events and Multicast Delegates. Let me explain: As we know an event is a multicast delegate. What we declare as an event is inherently a multicast delegate....
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.