Exemplo n.º 1
0
 def __init__(self):
     if FriendshipMsgHandler.__singleton:
         raise RuntimeError, 'FriendshipMsgHandler is singleton'
     self.overlay_bridge = None
     self.currmsgs = {}
     self.online_fsext_peers = Set()
     self.peerdb = PeerDBHandler.getInstance()
     self.frienddb = FriendDBHandler.getInstance()
     self.friendshipStatistics_db = FriendshipStatisticsDBHandler.getInstance()
     self.list_no_of_conn_attempts_per_target = {}
     self.usercallback = None
Exemplo n.º 2
0
 def __init__(self):
     if FriendshipMsgHandler.__singleton:
         raise RuntimeError, 'FriendshipMsgHandler is singleton'
     self.overlay_bridge = None
     self.currmsgs = {}
     self.online_fsext_peers = Set()
     self.peerdb = PeerDBHandler.getInstance()
     self.frienddb = FriendDBHandler.getInstance()
     self.friendshipStatistics_db = FriendshipStatisticsDBHandler.getInstance(
     )
     self.list_no_of_conn_attempts_per_target = {}
     self.usercallback = None
Exemplo n.º 3
0
 def __init__(self, session):
     self.session = session
     self.friendshipStatistics_db = FriendshipStatisticsDBHandler.getInstance()