ARTICLE

Multicasting using UDP in C#

Posted by Lee SangEun Articles | Networking April 04, 2002
The attached source code shows you how to use multi casting in a LAN environment.
Reader Level:
Download Files:
 

The attached source code shows you how to use multi casting in a LAN environment. Multicasting provides many benefits over TCP socket. Performance of a multicast server is better than a broadcast server and it reduces the network load in some cases.

In this attached source code, IP address 224.0.0.l is an address of local subnet.

UDP protocol is connectionless. That means an application doesn't have to be in a connected state. In general, if we use TCP protocol and the server application is end ORClient end, an application throws an exception but this application has no problem.

If a user increases load on a TCP connection, the server performance is decreases but UDP multicast has no effects. If you need to transfer data (not too secure ) in a LAN network, UDP multicast is a better choice.

How to use the source code:

Run muticastsrv (as a server) on a local machine
Run muticastcli (as a client) on other local LAN machines. Order of start is free.

and type your massage in the server application and conform message in a client. A client application can start and stop feely.

Login to add your contents and source code to this article
post comment
     

Did you try to use your code with two network cards? It seems it doesn't work when having a "writer" on each sub network, I got only messages coming from one card

Posted by Julien Mar 07, 2013

thanks a lot

Posted by alameri abdo May 27, 2012

I want coding for multicast routing using windows application also want the coding for finding shortest path

Posted by kiruthiga senguttuvan Dec 28, 2011

where is the source code

Posted by raphael zhang Nov 19, 2007

Says that the IP is an invalid argument.

Posted by Graeme Woodhouse Mar 13, 2007
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter