本文整理汇总了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()