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


Python WampServerFactory.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
   def __init__(self, url, debug = False):
      WampServerFactory.__init__(self, url, debugWamp = debug)
      self.setProtocolOptions(allowHixie76 = True)

      ## the key-value store resides on the factory object, since it is to
      ## be shared among all client connections
      self.keyvalue = KeyValue("keyvalue.dat")

      decimal.getcontext().prec = 20
开发者ID:MichalMazurek,项目名称:AutobahnTestSuite,代码行数:11,代码来源:wamptestserver.py

示例2: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
   def __init__(self, url, dbpool, services):
      WampServerFactory.__init__(self, url, debug = False, debugWamp = False)
      self.dbpool = dbpool
      self.services = services
      self.stats = {'ws-connections': 0,
                    'ws-publications': 0,
                    'ws-dispatched-success': 0,
                    'ws-dispatched-failed': 0}
      self.statsChanged = False

      self.trackingCookies = {}
开发者ID:jamjr,项目名称:crossbar,代码行数:13,代码来源:hubwebsocket.py

示例3: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
   def __init__(self, config):
      self.config = config
      WampServerFactory.__init__(self, config.wsuri, debugWamp = config.debug)

      self.setProtocolOptions(failByDrop = False)

      if config.skiputf8validate:
         self.setProtocolOptions(utf8validateIncoming = False)

      if config.allowunmasked:
         self.setProtocolOptions(requireMaskedClientFrames = False)

      print "Load/Latency Broker listening on %s [skiputf8validate = %s, allowunmasked = %s]" % (config.wsuri, config.skiputf8validate, config.allowunmasked)
开发者ID:boonedox,项目名称:AutobahnPython,代码行数:15,代码来源:server.py

示例4: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
   def __init__(self, config):
      self.config = config
      WampServerFactory.__init__(self, config.wsuri, debugWamp = config.debug)

      self.setProtocolOptions(failByDrop = False)

      if config.skiputf8validate:
         self.setProtocolOptions(utf8validateIncoming = False)

      if config.allowunmasked:
         self.setProtocolOptions(requireMaskedClientFrames = False)

      self.connectedClients = set()

      print "Load/Latency Broker listening on %s [skiputf8validate = %s, allowunmasked = %s]" % (config.wsuri, config.skiputf8validate, config.allowunmasked)

      def printstats():
         print "%d clients connected" % len(self.connectedClients)
         reactor.callLater(1, printstats)

      printstats()
开发者ID:andrewgsoler,项目名称:AutobahnPython,代码行数:23,代码来源:server.py

示例5: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, url, dbpool, services):
    WampServerFactory.__init__(self, url, debugApp = False)
    self.dbpool = dbpool
    self.services = services
    self.restartRequired = False
开发者ID:Inspire2Innovate,项目名称:crossbar,代码行数:7,代码来源:adminwebsocket.py

示例6: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
   def __init__(self, url):
      WampServerFactory.__init__(self, url)

      ## the key-value store resides on the factory object, since it is to
      ## be shared among all client connections
      self.keyvalue = KeyValue("keyvalue.dat")
开发者ID:Ms2ger,项目名称:presto-testo,代码行数:8,代码来源:keyvalue_server.py

示例7: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, url, debugSerial = False, debugWs = False, debugWamp = False):
    WampServerFactory.__init__(self, url, debug = debugWs, debugWamp = debugWamp)
    self.debugSerial = debugSerial
    self.mcuProtocol = McuProtocol(self)
开发者ID:ajjoshi,项目名称:AutobahnPython,代码行数:6,代码来源:serial2ws.py

示例8: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, url, debugWamp, timeout):
     self._reaper = None
     self._connection_count = 0
     self._timeout = timeout
     WampServerFactory.__init__(self, url, debugWamp)
开发者ID:HerculesCE,项目名称:ParaView,代码行数:7,代码来源:paraviewweb_wamp.py

示例9: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, url, debug=False, debugCodePaths=False, debugWamp=False, debugApp=False, externalPort=None):
     self.games = []
     WampServerFactory.__init__(self, url, debug=debug, debugCodePaths=debugCodePaths, externalPort=externalPort)
开发者ID:SunnyMagadan,项目名称:eatbullet,代码行数:5,代码来源:server.py

示例10: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, wsuri):
     WampServerFactory.__init__(self, wsuri)
     self.stepperWriter = StepperWriter.start().proxy()
     self.lcdWriter = LcdWriter.start().proxy()
     self.lcd = LcdRpc(self, self.lcdWriter);
     self.stepper = StepperRpc(self, self.stepperWriter, self.lcdWriter);
开发者ID:lumberbarons,项目名称:robot,代码行数:8,代码来源:server.py

示例11: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, url):
    WampServerFactory.__init__(self, url)
    self.mcuProtocol = McuProtocol(self)
开发者ID:UndeRus,项目名称:AutobahnPython,代码行数:5,代码来源:serial2ws.py

示例12: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     self.gateway = kwargs.pop('gateway')
     WampServerFactory.__init__(self, *args, **kwargs)
     self.connected_clients = []
开发者ID:ContinuumBridge,项目名称:telegraphy,代码行数:6,代码来源:txwamp.py

示例13: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, testDb, testRunner, url, debug = False):
    assert(verifyObject(ITestDb, testDb))
    assert(verifyObject(ITestRunner, testRunner))
    WampServerFactory.__init__(self, url, debug = True, debugWamp = True)
    self._testDb = testDb
    self._testRunner = testRunner
开发者ID:ctomc,项目名称:autobahntestsuite-maven-plugin,代码行数:8,代码来源:wampfuzzing.py

示例14: __init__

# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import __init__ [as 别名]
 def __init__(self, url, publish_uri, **kwargs):
     WampServerFactory.__init__(self, url, **kwargs)
     Game.register_cah_wamp_client(self)
     Game.set_publish_uri(publish_uri)
     self.startFactory() #hack!
开发者ID:QuillOmega0,项目名称:cah,代码行数:7,代码来源:caewebsockets.py


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