当前位置: 首页>>代码示例>>Python>>正文


Python DownloadConfig.DownloadConfigInterface类代码示例

本文整理汇总了Python中freestream.Core.DownloadConfig.DownloadConfigInterface的典型用法代码示例。如果您正苦于以下问题:Python DownloadConfigInterface类的具体用法?Python DownloadConfigInterface怎么用?Python DownloadConfigInterface使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DownloadConfigInterface类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: set_selected_files

 def set_selected_files(self, files):
     self.dllock.acquire()
     try:
         DownloadConfigInterface.set_selected_files(self, files)
         self.set_filepieceranges(self.tdef.get_metainfo())
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:7,代码来源:DownloadRuntimeConfig.py

示例2: set_max_uploads

 def set_max_uploads(self, value):
     self.dllock.acquire()
     try:
         if self.sd is not None:
             set_max_uploads_lambda = lambda : self.sd is not None and self.sd.set_max_uploads(value)
             self.session.lm.rawserver.add_task(set_max_uploads_lambda, 0.0)
         DownloadConfigInterface.set_max_uploads(self, value)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:9,代码来源:DownloadRuntimeConfig.py

示例3: set_max_conns_to_initiate

 def set_max_conns_to_initiate(self, nconns):
     self.dllock.acquire()
     try:
         if self.sd is not None:
             set_max_conns2init_lambda = lambda : self.sd is not None and self.sd.set_max_conns_to_initiate(nconns, None)
             self.session.lm.rawserver.add_task(set_max_conns2init_lambda, 0.0)
         DownloadConfigInterface.set_max_conns_to_initiate(self, nconns)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:9,代码来源:DownloadRuntimeConfig.py

示例4: set_max_speed

 def set_max_speed(self, direct, speed, auto_limit = False):
     if DEBUG:
         log('DownloadRuntimeConfig::set_max_speed:', binascii.hexlify(self.get_hash()), direct, speed, auto_limit)
     self.dllock.acquire()
     try:
         if self.sd is not None:
             set_max_speed_lambda = lambda : self.sd is not None and self.sd.set_max_speed(direct, speed, auto_limit)
             self.session.lm.rawserver.add_task(set_max_speed_lambda, 0)
         DownloadConfigInterface.set_max_speed(self, direct, speed, auto_limit)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:11,代码来源:DownloadRuntimeConfig.py

示例5: set_wait_sufficient_speed

 def set_wait_sufficient_speed(self, value):
     if DEBUG:
         log('DownloadRuntimeConfig::set_wait_sufficient_speed:', binascii.hexlify(self.get_hash()), value)
     self.dllock.acquire()
     try:
         if self.sd is not None:
             set_wait_sufficient_speed_lambda = lambda : self.sd is not None and self.sd.set_wait_sufficient_speed(value)
             self.session.lm.rawserver.add_task(set_wait_sufficient_speed_lambda, 0)
         if self.dd is not None:
             set_wait_sufficient_speed_lambda = lambda : self.dd is not None and self.dd.set_wait_sufficient_speed(value)
             self.session.lm.rawserver.add_task(set_wait_sufficient_speed_lambda, 0)
         DownloadConfigInterface.set_wait_sufficient_speed(self, value)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:14,代码来源:DownloadRuntimeConfig.py

示例6: set_poa

 def set_poa(self, poa):
     self.dllock.acquire()
     try:
         DownloadConfigInterface.set_poa(self, poa)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例7: get_poa

 def get_poa(self, poa):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_poa(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例8: get_rerequest_interval

 def get_rerequest_interval(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_rerequest_interval(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例9: get_ut_pex_max_addrs_from_peer

 def get_ut_pex_max_addrs_from_peer(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_ut_pex_max_addrs_from_peer(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例10: get_proxy_mode

 def get_proxy_mode(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_proxy_mode(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例11: get_no_helpers

 def get_no_helpers(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_no_helpers(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例12: get_round_robin_period

 def get_round_robin_period(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_round_robin_period(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例13: get_live_buffer_time

 def get_live_buffer_time(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_live_buffer_time(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例14: get_min_uploads

 def get_min_uploads(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_min_uploads(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py

示例15: get_max_files_open

 def get_max_files_open(self):
     self.dllock.acquire()
     try:
         return DownloadConfigInterface.get_max_files_open(self)
     finally:
         self.dllock.release()
开发者ID:salekseev,项目名称:freestream,代码行数:6,代码来源:DownloadRuntimeConfig.py


注:本文中的freestream.Core.DownloadConfig.DownloadConfigInterface类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。