Example #1
0
def startBridge( sock1, sock2, reactor, routerState ) :
    bridge = TCPBridge( sock1, sock2, reactor )
    routerState.bridges[bridge] = 1
    def onClose() :
        logger.info('delete bridge %s' % bridge.id)
        del routerState.bridges[bridge]
    bridge.setCloseCallback( onClose )
Example #2
0
 def _onMessage( self, msg ) :
     sock1,sock2,notifytq = msg
     bridge = TCPBridge( sock1, sock2, self.reactor )
     bridge.setCloseCallback( lambda : notifytq.postMessage(True) )
Example #3
0
 def _onMessage(self, msg):
     sock1, sock2, notifytq = msg
     bridge = TCPBridge(sock1, sock2, self.reactor)
     bridge.setCloseCallback(lambda: notifytq.postMessage(True))
Example #4
0
def startBridge( sock1, sock2, reactor, routerState ) :
    bridge = TCPBridge( sock1, sock2, reactor )
    routerState.bridges[bridge] = 1
    def onClose() :
        del routerState.bridges[bridge]
    bridge.setCloseCallback( onClose )