Groups | Blog | Home
all groups > dotnet distributed apps > march 2004 >

dotnet distributed apps : HELP: Multicasting in C#


Francisco
3/30/2004 5:51:08 PM
I want to multicast in both IPv4 and IPv6 scenarios

Therefore I read my TCP/IP protocol suite book and find that

IPv4 IGMP packet

8 bits 8 bits 16 bit
-----------------------------------------------------
|Type | Maximum Response Time |Checksum
-----------------------------------------------------
| Group Address
-----------------------------------------------------

'Type' field codes
- Group membership report: 0x16 or 0001011
- Leave group report: 0x17 or 0001011
- General/Special query: 0x11 or 0001011

For IGMPv6 (i.e, ICMPv6), the differences can be seen at
http://www.networksorcery.com/enp/protocol/icmpv6.ht

Can anyone tell me the following

1-) Can I manipulate these values using a socket? If so, what must be done to gain access to the IGMP datagram type cod
properties

2-) Do I need to get down to packet assembly (in my c# code), or is there any abstraction that allows me to send, specifically, IGMP JOIN and LEAVE status messages, as well as recognize those messages when receiving the IGMP datagram

Thank you with all my enthusiasm

Francisc
Not important who I am
3/31/2004 8:24:34 PM
Try looking at the UdpClient class. This allows you to join and drop
multicast groups. Take a look in MSDN and you'll find that there is sample
code for a server and client.


[quoted text, click to view]
any abstraction that allows me to send, specifically, IGMP JOIN and LEAVE
status messages, as well as recognize those messages when receiving the IGMP
datagram?
[quoted text, click to view]

AddThis Social Bookmark Button