(self,
                 server,
                 socks,
                 kbps,
                 tx_event,
                 channel,
                 regions=None,
                 tls_cert=None,
                 tls_key=None)
DemoRx Constructor

        Args:
            server   : API server address where the order lives
            socks    : Instances of UdpSock over which to send the packets
            kbps     : Target bit rate in kbps
            tx_event : SSE event to use as trigger for transmissions
            channel  : API channel number
            regions  : Regions covered by the transmission (for Tx
                       confirmation)
            tls_key  : API client key (for Tx confirmation)
            tls_cer  : API client certificate (for Tx confirmation)
DemoRx Constructor
DemoRx Constructor
def __init__(self,
                 server,
                 socks,
                 kbps,
                 tx_event,
                 channel,
                 regions=None,
                 tls_cert=None,
                 tls_key=None):
        """ DemoRx Constructor

        Args:
            server   : API server address where the order lives
            socks    : Instances of UdpSock over which to send the packets
            kbps     : Target bit rate in kbps
            tx_event : SSE event to use as trigger for transmissions
            channel  : API channel number
            regions  : Regions covered by the transmission (for Tx
                       confirmation)
            tls_key  : API client key (for Tx confirmation)
            tls_cer  : API client certificate (for Tx confirmation)


        """
        # Validate args
        assert (isinstance(socks, list))
        assert (all([isinstance(x, net.UdpSock) for x in socks]))

        # Configs
        self.server = server
        self.socks = socks
        self.kbps = kbps
        self.tx_event = tx_event
        self.channel = channel
        self.regions = regions
        self.tls_cert = tls_cert
        self.tls_key = tls_key

        # State
        self.last_seq_num = None
def __init__ ( self , server , socks , kbps , tx_event , channel , regions = None , tls_cert = None , tls_key = None ) : # Validate args assert ( isinstance ( socks , list ) ) assert ( all ( [ isinstance ( x , net . UdpSock ) for x in socks ] ) ) # Configs self . server = server self . socks = socks self . kbps = kbps self . tx_event = tx_event self . channel = channel self . regions = regions self . tls_cert = tls_cert self . tls_key = tls_key # State self . last_seq_num = None