[Live-devel] IP_ADD_MEMBERSHIP error in test programs
Victor Kozhuhov
vkozhuhov at gmx.net
Mon Nov 20 14:13:10 PST 2006
Hello,
I am building a multicast-enabled RTSP server based on liveMedia library.
Following all instructions (FAQ, archives and sample programs) I have to use PassiveServerMediaSubsession.
No problem with this, except that I can not open a socket for multicast - it always fails joining multicast group.
I tried to build and run the testWAVAudioStreamer.cpp sample, and here is the output:
Audio source parameters:
44100 Hz, 16 bits-per-sample, 1 channels => 705600 bits-per-second
Converting to network byte order for streaming
03:49:05 Groupsock(2964: 232.85.88.236, 2222, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: Unknown error
03:49:05 Groupsock(2788: 232.85.88.236, 2223, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: Unknown error
Play this stream using the URL "rtsp://192.168.0.1:8554/testStream"
Beginning streaming...
...done streaming
Press any key to continue
socket(...) is OK, bind(...) also. Seems that something is wrong the call to setsockopt(IP_ADD_MEMBERSHIP).
I compared the call flow with MS SDK sample - looks the same, but MS sample works just great.
Any ideas?
My environment: Win2000 SP 4, VC6.0, PlatformSDK 2002
Thank you in advance,
Victor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20061120/156f5968/attachment.html
More information about the live-devel
mailing list