Re: [twsocket] ICS & IGMP

2009-03-23 Thread Francois PIETTE
> My next problem is this - MCAST_JOIN_GROUP requires me to pass a GROUP_REQ 
> structure which contains the following member:
>
> gr_interface
> The interface index of the local interface on which the multicast group 
> should be joined or dropped.
>
> Is this something I can retrieve using ICS or do I have to call 
> GetAdaptersAddresses, parse the output and find the appropriate network 
> interface?

You have to use IpHelper functions like GetAdaptersAddresses.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS & IGMP

2009-03-23 Thread Primoz Gabrijelcic
>> Does anybody have a working code that sends IGMP requests?
>> I search the net but found nothing but standards ...
>> I'll reimplement the stuff in any occasion but I find source code more 
>> readable than RFCs.

> Sorry, never saw source code for IGMP.

It is very similar to ICMP. As MS doesn't offer IGMP functionality packed as a 
DLL (as it does for the ICMP), I think my only option (besides dropping to the 
WinPcap level) is to use SetSockOpt - similar to the way you already hadle 
MultiCast = true.

My next problem is this - MCAST_JOIN_GROUP requires me to pass a GROUP_REQ 
structure which contains the following member:

gr_interface

The interface index of the local interface on which the multicast group should 
be joined or dropped.

Is this something I can retrieve using ICS or do I have to call 
GetAdaptersAddresses, parse the output and find the appropriate network 
interface?

TIA,
Primoz

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] ICS & IGMP

2009-03-23 Thread Francois PIETTE
> Does anybody have a working code that sends IGMP requests?
> I search the net but found nothing but standards ...
> I'll reimplement the stuff in any occasion but I find source code more 
> readable than RFCs.

Sorry, never saw source code for IGMP.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be