[mythtv] Muticast - Network Recorder with multiple eth devices‏

Robert Johnston anaerin at gmail.com
Thu Mar 26 04:41:09 UTC 2009


On Wed, Mar 25, 2009 at 19:19, Robert Johnston <anaerin at gmail.com> wrote:
> On Wed, Mar 25, 2009 at 18:47, Robert McNamara
> <robert.mcnamara at gmail.com> wrote:
>> You're asking on the dev mailing list, try the users list.
>
> Actually, I believe that is a valid question for the dev list.
>
> I'm the author of the wiki page, and I've not managed to find a way
> (With the controls given) to bind the IPTVRecorder to a particular
> connection.
>
> I will be taking a look at the code (again) to see if it's a simple
> hook, as well as to see if there is some reason for a few other bugs
> I've come across (Namely, two recorders recording the same stream, or
> recording the "wrong" stream when there's 2 recordings scheduled at
> the same time).
>
> I'll get back to you all when I find out what the deal is.

Okay, after a LOT of digging (I've never coded sockets before, and my
knowledge of C++ is "Hello world" level at best), it seems we need to
patch the live555 library, specifically groupsock/GroupSockHelper.cpp
at/around line 214 (at the very least), with a statement similar to:

if (ethernetDevice > 0) {
   setsockopt(newSocket, SOL_SOCKET, SO_BINDTODEVICE, ethernetDevice);
}

And the option to optionally pass in an ethernet device in the various
constructors

Another alternative (Though I have no idea just how well this would
work) would be to put the call directly after the socket is built by
groupsock.
-- 
Robert "Anaerin" Johnston
Sent from: Regina SK Canada.


More information about the mythtv-dev mailing list