Re: IP Multicast Receiver - how to do it in Right Way???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Mr.Cyber wrote:

Hi, brothers! :)

I have some tool - multichannel proxy (Win32, WinXP SP2, Winsock2). Each channel has polymorphic end point, that is any channel can be configured to work with, for example TCP/IP to Multicast IP, file to TCP/IP, Multicast IP to Multicast IP and so on. I get data from one end point and transfer it to another. Everything works Well! But I've spotted one Problem. I can create channel Multicast IP to ... anyThing. And it woks fine! But all other channels, that will be liesten to any other Multicast IP - they won't work :(((( My channel do not share any resoureces, they have not any common point and places. I'm sure in this.

Hence I do something wrong when I try to listen to Multicast IP.

On the internet there are not so many articles and examples regarding this question. And all they fall into two group:

You must first bind() the socket to the port that the multicast address uses, just like when using broadcast.


1. with using setsockopt(m_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP ......... )
2. with using WSAJoinLeaf(.....)
>
And till now I can't relly understand ...
- do these function the same?

Not exactly, since WSAJoinLeaf() acts like a combination of of accept() and connect(). I have always used socket() and setsockopt() for multicast and it works fine and it is portable.


- which of them should be used and when exactly
- and finally - how should look stable working Multicast IP listener.

I'll really appreciate your assistance, explanations or useful links.
THANKS in Advance!!!

-- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com .



Relevant Pages

  • Re: Roaming / offchannel enhancements for broadcast / multicast frames
    ... on receiving it" doesn't personally wash with me. ... I spent a lot of effort in an an earlier life in supporting multicast ... situations it might be better from the standpoint of ultimate channel ... home channel above scanning". ...
    (Linux-Kernel)
  • multicast routing issue?
    ... I have an application which should join a multicast channel at beginning ... But my problem is that if I join the channel from the VPN router, I can receive the traffic ok. ... But the request to join the channel from my program didn't get to the router and forward alone. ...
    (comp.unix.admin)
  • Packet reordering and blocking problem at gigabit with 2.4 kernel
    ... I am developing application level multicast router with Xeon processor. ... The system lost lots of packets and reordered the packets, ... Every channel sends 6Mbps with 2048 bytes packet. ... I heard that SMP machines has inherant reordering issues, ...
    (Linux-Kernel)
  • Re: Multicast on 21CN
    ... to be multicasting an HD channel to their users when they start supporting multicast later this year at the same time as they launch their 50 Mbps broadband package, so people should also be able to get the BBC's multicast streams as well, which should inclube the BBC and ITV TV channels and the BBC HD channel might not be too far over the horizon from being multicast - if Virgin can multicast an HD channel now there's no reason why they couldn't do the BBC HD channel to their customers now either if the BBC let them. ...
    (uk.telecom.broadband)
  • Re: Video streaming using sockets
    ... TCP/IP is fairly unreliable ... some people prefer to use UDP for streaming video. ... the fact that TCP/IP isn't providing reliability becomes a secondary ... Note that UDP also allows multicast, so you only need one packet to send your data to ...
    (microsoft.public.vc.mfc)