本文整理匯總了Python中freestream.Core.SessionConfig.SessionConfigInterface類的典型用法代碼示例。如果您正苦於以下問題:Python SessionConfigInterface類的具體用法?Python SessionConfigInterface怎麽用?Python SessionConfigInterface使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了SessionConfigInterface類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: set_stop_collecting_threshold
def set_stop_collecting_threshold(self, value):
self.sesslock.acquire()
try:
from freestream.Core.Overlay.OverlayThreadingBridge import OverlayThreadingBridge
SessionConfigInterface.set_stop_collecting_threshold(self, value)
olbridge = OverlayThreadingBridge.getInstance()
task = lambda : self.olthread_set_stop_collecting_threshold(value)
olbridge.add_task(task, 0)
finally:
self.sesslock.release()
示例2: get_torrent_checking_period
def get_torrent_checking_period(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_torrent_checking_period(self)
finally:
self.sesslock.release()
示例3: get_multicast_local_peer_discovery
def get_multicast_local_peer_discovery(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_multicast_local_peer_discovery(self)
finally:
self.sesslock.release()
示例4: get_pingback_servers
def get_pingback_servers(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_pingback_servers(self)
finally:
self.sesslock.release()
示例5: get_nat_detect
def get_nat_detect(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_nat_detect(self)
finally:
self.sesslock.release()
示例6: get_buddycast_collecting_solution
def get_buddycast_collecting_solution(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_buddycast_collecting_solution(self)
finally:
self.sesslock.release()
示例7: get_superpeer_file
def get_superpeer_file(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_superpeer_file(self)
finally:
self.sesslock.release()
示例8: get_overlay_max_message_length
def get_overlay_max_message_length(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_overlay_max_message_length(self)
finally:
self.sesslock.release()
示例9: set_mugshot
def set_mugshot(self, value, mime = 'image/jpeg'):
self.sesslock.acquire()
try:
return SessionConfigInterface.set_mugshot(self, value, mime)
finally:
self.sesslock.release()
示例10: set_nickname
def set_nickname(self, value):
self.sesslock.acquire()
try:
return SessionConfigInterface.set_nickname(self, value)
finally:
self.sesslock.release()
示例11: get_mainline_dht
def get_mainline_dht(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_mainline_dht(self)
finally:
self.sesslock.release()
示例12: get_stop_collecting_threshold
def get_stop_collecting_threshold(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_stop_collecting_threshold(self)
finally:
self.sesslock.release()
示例13: get_remote_query
def get_remote_query(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_remote_query(self)
finally:
self.sesslock.release()
示例14: get_social_networking
def get_social_networking(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_social_networking(self)
finally:
self.sesslock.release()
示例15: get_tracker_multitracker_http_timeout
def get_tracker_multitracker_http_timeout(self):
self.sesslock.acquire()
try:
return SessionConfigInterface.get_tracker_multitracker_http_timeout(self)
finally:
self.sesslock.release()