def _reconnect(self, address, bind_address = None): self.address = address if bind_address != self.uopts.laddress: self.uopts.laddress = bind_address self.worker.shutdown() self.worker = Udp_server(self.global_config, self.uopts) self.delay_flt = recfilter(0.95, 0.25)
def _reconnect(self, address, bind_address=None): self.address = address if bind_address != self.uopts.laddress: self.uopts.laddress = bind_address self.worker.shutdown() self.worker = Udp_server(self.global_config, self.uopts) self.delay_flt = recfilter(0.95, 0.25)
def _reconnect(self, address, bind_address=None): Rtp_proxy_client_stream.shutdown(self) self.address = address self.workers = [] for i in range(0, self.nworkers): try: self.workers.append(_RTPPLWorker(self)) except: break self.nworkers_act = i + 1 self.delay_flt = recfilter(0.95, 0.25)
def _reconnect(self, address, bind_address = None): Rtp_proxy_client_stream.shutdown(self) self.address = address self.workers = [] for i in range(0, self.nworkers): try: self.workers.append(_RTPPLWorker(self)) except: break self.nworkers_act = i + 1 self.delay_flt = recfilter(0.95, 0.25)
def __init__(self, global_config, address, bind_address = None, family = AF_INET, nworkers = None): #print('Rtp_proxy_client_udp(family=%s)' % family) self.address = self.getdestbyaddr(address, family) self.is_local = False self.uopts = Udp_server_opts(bind_address, self.process_reply, family) self.uopts.flags = 0 self.uopts.ploss_out_rate = self.ploss_out_rate self.uopts.pdelay_out_max = self.pdelay_out_max if nworkers != None: self.uopts.nworkers = nworkers self.worker = Udp_server(global_config, self.uopts) self.pending_requests = {} self.global_config = global_config self.delay_flt = recfilter(0.95, 0.25)
def __init__(self, global_config, address, bind_address=None, family=AF_INET, nworkers=None): #print('Rtp_proxy_client_udp(family=%s)' % family) self.address = self.getdestbyaddr(address, family) self.is_local = False self.uopts = Udp_server_opts(bind_address, self.process_reply, family) self.uopts.flags = 0 self.uopts.ploss_out_rate = self.ploss_out_rate self.uopts.pdelay_out_max = self.pdelay_out_max if nworkers != None: self.uopts.nworkers = nworkers self.worker = Udp_server(global_config, self.uopts) self.pending_requests = {} self.global_config = global_config self.delay_flt = recfilter(0.95, 0.25)
def __init__(self, global_config, address = '/var/run/rtpproxy.sock', \ bind_address = None, nworkers = 1, family = socket.AF_UNIX): #print('Rtp_proxy_client_stream.__init__', address, bind_address, nworkers, family) if family == socket.AF_UNIX: self.is_local = True self.address = address else: self.is_local = False self.address = self.getdestbyaddr(address, family) self.family = family self.wi_available = Condition() self.wi = [] self.nworkers = nworkers self.workers = [] for i in range(0, self.nworkers): try: self.workers.append(_RTPPLWorker(self)) except: break self.nworkers_act = i + 1 self.delay_flt = recfilter(0.95, 0.25)
def __init__(self): realt = clock_getdtime(CLOCK_REALTIME) self.monot_max = clock_getdtime(CLOCK_MONOTONIC) self.realt_flt = recfilter(0.99, realt - self.monot_max)