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


Python WampClientFactory.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, test, peerIndex, onReady, onGone):
    WampClientFactory.__init__(self, test.testee.url)
    self.test = test
    self.peerIndex = peerIndex
    self.onReady = onReady
    self.onGone = onGone
    self.proto = None
开发者ID:crossbario,项目名称:autobahn-testsuite,代码行数:9,代码来源:wampcase2_2_x_x.py

示例2: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, peerIndex, onReady, onGone, test, result):
    assert(self.protocol)
    WampClientFactory.__init__(self, test.testee.url)
    self.peerIndex = peerIndex
    self.onReady = onReady
    self.onGone = onGone
    self.test = test
    self.result = result
    self.proto = None
开发者ID:yuanjuxing,项目名称:AutobahnTestSuite,代码行数:11,代码来源:wampcase.py

示例3: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, options, debug):
    self.options = options
    self.user = "admin"
    self.password = options["password"]
    self.command = options["command"]
    if self.command == 'connect':
       self.reconnect = True
    else:
       self.reconnect = False
    if options["spec"]:
       self.config = json.loads(open(options["spec"]).read())
    else:
       self.config = None
    WampClientFactory.__init__(self, options["wsuri"], debugWamp = debug)
开发者ID:jamjr,项目名称:crossbar,代码行数:16,代码来源:cli.py

示例4: __init__

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

      WampClientFactory.__init__(self, config.wsuri, debugWamp = config.debug)

      self.config = config
      self.receivedCnt = 0
      self.receivedRtts = []

      self.setProtocolOptions(failByDrop = False)

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

      if config.skipmasking:
         self.setProtocolOptions(maskClientFrames = False)
开发者ID:boonedox,项目名称:AutobahnPython,代码行数:17,代码来源:client.py

示例5: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, case, onReady, onGone, subscribeTopics):
     WampClientFactory.__init__(self, case.url, debug=case.debugWs, debugWamp=case.debugWamp)
     self.case = case
     self.onReady = onReady
     self.onGone = onGone
     self.subscribeTopics = subscribeTopics
开发者ID:normanmaurer,项目名称:autobahntestsuite-maven-plugin,代码行数:8,代码来源:wampcase1.py

示例6: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, wsuri, user, password):
    self.user = user
    self.password = password
    WampClientFactory.__init__(self, wsuri)
开发者ID:Aerobota,项目名称:autobahn_rce,代码行数:6,代码来源:client.py

示例7: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, command_channel, *args, **kwargs):
     self.command_channel = command_channel
     WampClientFactory.__init__(self, *args, **kwargs)
开发者ID:davidblewett,项目名称:gunny,代码行数:5,代码来源:command.py

示例8: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, options, reactor):
    self.options = options
    self.done = False
    WampClientFactory.__init__(self,
                               self.options.server,
                               debugWamp = self.options.debug)
开发者ID:Inspire2Innovate,项目名称:crossbar,代码行数:8,代码来源:cli.py

示例9: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, app):
    WampClientFactory.__init__(self, app.url, debugWamp = app.debug)
    self.app = app
    self.proto = None
    self.wasConnected = False
开发者ID:CatBakun,项目名称:AutobahnPython,代码行数:7,代码来源:dirwatch.py

示例10: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, url, debug = False, debugCodePaths = False, debugWamp = False, debugApp = False):
     WampClientFactory.__init__(self, url, debug = debug, debugCodePaths = debugCodePaths)
     self.spiders = {}
     self.is_first = 0
开发者ID:mobishift2011,项目名称:data007,代码行数:6,代码来源:spider_runner.py

示例11: __init__

# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
 def __init__(self, app, clientId):
     WampClientFactory.__init__(self, ARGS.websocket_url, ARGS.debug)
     self.protocol = None
     self.app = app
     self.clientId = clientId
     self.failureRecorded = False
开发者ID:nickfishman,项目名称:autobahn-tests,代码行数:8,代码来源:stressclient.py


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