當前位置: 首頁>>代碼示例>>Python>>正文


Python DownloadConfig.DownloadConfigInterface類代碼示例

本文整理匯總了Python中ACEStream.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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數: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:2jangelman,項目名稱:P2P-Streams-XBMC--Modules-,代碼行數:6,代碼來源:DownloadRuntimeConfig.py


注:本文中的ACEStream.Core.DownloadConfig.DownloadConfigInterface類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。