当前位置: 首页>>代码示例>>Python>>正文


Python WebSocketServerProtocol.connectionMade方法代码示例

本文整理汇总了Python中autobahn.websocket.WebSocketServerProtocol.connectionMade方法的典型用法代码示例。如果您正苦于以下问题:Python WebSocketServerProtocol.connectionMade方法的具体用法?Python WebSocketServerProtocol.connectionMade怎么用?Python WebSocketServerProtocol.connectionMade使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在autobahn.websocket.WebSocketServerProtocol的用法示例。


在下文中一共展示了WebSocketServerProtocol.connectionMade方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     self.configuration = self.configuration
     WebSocketServerProtocol.connectionMade(self)
     self.lisaclientfactory = libs.LisaClientFactory(self)
     if self.configuration['enable_secure_mode']:
          self.conn = reactor.connectSSL(self.configuration['lisa_url'], self.configuration['lisa_engine_port_ssl'],
                             self.lisaclientfactory, CtxFactory()
          )
     else:
         self.conn = reactor.connectTCP(self.configuration['lisa_url'],
                            self.configuration['lisa_engine_port'], self.lisaclientfactory)
开发者ID:byackee,项目名称:LISA,代码行数:13,代码来源:websocket.py

示例2: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     WebSocketServerProtocol.connectionMade(self)
     print "Connection made"
开发者ID:stuffmatic,项目名称:snacka,代码行数:5,代码来源:echoserver.py

示例3: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
    WebSocketServerProtocol.connectionMade(self)
    FuzzingProtocol.connectionMade(self)
开发者ID:abrandl,项目名称:AutobahnTestSuite,代码行数:5,代码来源:fuzzing.py

示例4: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     print 'connection made'
     WebSocketServerProtocol.connectionMade(self)
开发者ID:lchi,项目名称:freshy-server,代码行数:5,代码来源:freshy-server.py

示例5: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
    WebSocketServerProtocol.connectionMade(self)
    self.factory.onConnectionCountChanged()
开发者ID:Inspire2Innovate,项目名称:crossbar,代码行数:5,代码来源:echowebsocket.py

示例6: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     WebSocketServerProtocol.connectionMade(self)
     self.subscriber = Subscriber(self)
开发者ID:wikimedia,项目名称:mediawiki-rcsub,代码行数:5,代码来源:rcsub.py

示例7: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     WebSocketServerProtocol.connectionMade(self)#always before your code
     self.factory.connections.append(self)
开发者ID:kudox,项目名称:ctf_scorebot5,代码行数:5,代码来源:StaticFlagSocket.py

示例8: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     WebSocketServerProtocol.connectionMade(self)
     log.msg("Simulator connected...")
     self.factory.lotus.addBlossomProvider(self)
     self.factory.lotus.addLilypadProvider(self)
开发者ID:brandenhall,项目名称:CryptoLotus,代码行数:7,代码来源:simulator.py

示例9: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     self.factory.register(self)
     return WebSocketServerProtocol.connectionMade(self)
开发者ID:toopy,项目名称:west-socket,代码行数:5,代码来源:protocol.py

示例10: connectionMade

# 需要导入模块: from autobahn.websocket import WebSocketServerProtocol [as 别名]
# 或者: from autobahn.websocket.WebSocketServerProtocol import connectionMade [as 别名]
 def connectionMade(self):
     WebSocketServerProtocol.connectionMade(self)
     logging.info('Connection made from %s!', self.peerstr)
     self.factory.clients.append(self)
开发者ID:aitorciki,项目名称:bcndevcon-websocket,代码行数:6,代码来源:server.py


注:本文中的autobahn.websocket.WebSocketServerProtocol.connectionMade方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。