Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 def __init__(self, options, debug):
    self.options = options
    self.user = "******"
    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)
Ejemplo n.º 5
0
   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)
Ejemplo n.º 6
0
   def __init__(self, config):

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

      self.config = config
      self.id = 0
      self.batchid = 0
      self.publishedCnt = 0

      self.setProtocolOptions(failByDrop = False)

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

      if config.skipmasking:
         self.setProtocolOptions(maskClientFrames = False)
Ejemplo n.º 7
0
   def __init__(self, config, d):

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

      self._ready = d

      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)
Ejemplo n.º 8
0
 def __init__(self, app):
     WampClientFactory.__init__(self, app.url, debugWamp=app.debug)
     self.app = app
     self.proto = None
     self.wasConnected = False
 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
Ejemplo n.º 10
0
 def __init__(self, wsuri, user, password):
    self.user = user
    self.password = password
    WampClientFactory.__init__(self, wsuri)
Ejemplo n.º 11
0
 def __init__(self, command_channel, *args, **kwargs):
     self.command_channel = command_channel
     WampClientFactory.__init__(self, *args, **kwargs)
Ejemplo n.º 12
0
 def __init__(self, options, reactor):
    self.options = options
    self.done = False
    WampClientFactory.__init__(self,
                               self.options.server,
                               debugWamp = self.options.debug)
Ejemplo n.º 13
0
 def __init__(self, options, reactor):
     self.options = options
     self.done = False
     WampClientFactory.__init__(self,
                                self.options.server,
                                debugWamp=self.options.debug)
Ejemplo n.º 14
0
 def __init__(self, app):
    WampClientFactory.__init__(self, app.url, debugWamp = app.debug)
    self.app = app
    self.proto = None
    self.wasConnected = False
Ejemplo n.º 15
0
 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
Ejemplo n.º 16
0
 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