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.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
JulienPosted Mar 7, 2013, 9:38 AM
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
alameri abdoPosted May 27, 2012, 8:34 AM
thanks a lot
kiruthiga senguttuvanPosted Dec 28, 2011, 7:51 AM
I want coding for multicast routing using windows application also want the coding for finding shortest path
raphael zhangPosted Nov 19, 2007, 2:42 AM
where is the source code
Graeme WoodhousePosted Mar 13, 2007, 5:40 AM
Says that the IP is an invalid argument.