Esempio n. 1
0
 def __init__(self, parent, clid, url, interfaceName):
     self.broker = parent
     self.clid = clid
     self.url = url
     self.interfaceName = interfaceName
     self.interface = getRemoteInterfaceByName(interfaceName)
     self.received_count = 0
     self.ref = None
Esempio n. 2
0
 def __init__(self, parent, clid, url, interfaceName):
     self.broker = parent
     self.clid = clid
     # TODO: the remote end sends us a global URL, when really it should
     # probably send us a per-Tub name, which can can then concatenate to
     # their TubID if/when we pass it on to others. By accepting a full
     # URL, we give them the ability to sort-of spoof others. We could
     # check that url.startswith(broker.remoteTub.baseURL), but the Right
     # Way is to just not have them send the base part in the first place.
     # I haven't yet made this change because I'm not yet positive it
     # would work.. how exactly does the base url get sent, anyway? What
     # about Tubs visible through multiple names?
     self.url = url
     self.interfaceName = interfaceName
     self.interface = getRemoteInterfaceByName(interfaceName)
     self.received_count = 0
     self.ref = None
Esempio n. 3
0
 def __init__(self, parent, clid, url, interfaceName):
     self.broker = parent
     self.clid = clid
     # TODO: the remote end sends us a global URL, when really it should
     # probably send us a per-Tub name, which can can then concatenate to
     # their TubID if/when we pass it on to others. By accepting a full
     # URL, we give them the ability to sort-of spoof others. We could
     # check that url.startswith(broker.remoteTub.baseURL), but the Right
     # Way is to just not have them send the base part in the first place.
     # I haven't yet made this change because I'm not yet positive it
     # would work.. how exactly does the base url get sent, anyway? What
     # about Tubs visible through multiple names?
     self.url = url
     self.interfaceName = interfaceName
     self.interface = getRemoteInterfaceByName(interfaceName)
     self.received_count = 0
     self.ref = None