(adapter, ifnames, pids, ule=False)
Start DVB network interfaces of a DVB adapter

    An adapter can have multiple dvbnet interfaces, one for each PID.

    Args:
        adapter  : DVB adapter index
        ifnames  : list of DVB network interface names
        pids     : List of PIDs to listen to on each interface
        ule      : Whether to use ULE framing
Start DVB network interfaces of a DVB adapter
Start DVB network interfaces of a DVB adapter
def _dvbnet(adapter, ifnames, pids, ule=False):
    """Start DVB network interfaces of a DVB adapter

    An adapter can have multiple dvbnet interfaces, one for each PID.

    Args:
        adapter  : DVB adapter index
        ifnames  : list of DVB network interface names
        pids     : List of PIDs to listen to on each interface
        ule      : Whether to use ULE framing

    """
    assert (isinstance(ifnames, list))
    assert (isinstance(pids, list))
    assert(len(ifnames) == len(pids)), \
        "Interface names and PID number must be vectors of the same length"

    # Find the dvbnet interfaces that already exist for the chosen adapter
    existing_dvbnet_iif = _find_dvbnet_interfaces(adapter)

    util.print_header("Network Interface")

    for ifname, pid in zip(ifnames, pids):
        _dvbnet_single(adapter, ifname, pid, ule, existing_dvbnet_iif)
def _dvbnet ( adapter , ifnames , pids , ule = False ) : assert ( isinstance ( ifnames , list ) ) assert ( isinstance ( pids , list ) ) assert ( len ( ifnames ) == len ( pids ) ) , "Interface names and PID number must be vectors of the same length" # Find the dvbnet interfaces that already exist for the chosen adapter existing_dvbnet_iif = _find_dvbnet_interfaces ( adapter ) util . print_header ( "Network Interface" ) for ifname , pid in zip ( ifnames , pids ) : _dvbnet_single ( adapter , ifname , pid , ule , existing_dvbnet_iif )