Beispiel #1
0
 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)
   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
    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
Beispiel #4
0
   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 = {}
Beispiel #5
0
   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)
Beispiel #6
0
   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()
Beispiel #7
0
   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()
Beispiel #8
0
 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)
Beispiel #9
0
 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
Beispiel #10
0
 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!
 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
Beispiel #12
0
 def __init__(self, url, debugWamp, timeout):
     self._reaper = None
     self._connection_count = 0
     self._timeout = timeout
     WampServerFactory.__init__(self, url, debugWamp)
Beispiel #13
0
 def __init__(self, url, debugWamp, timeout):
     self._reaper = None
     self._connection_count = 0
     self._timeout = timeout
     WampServerFactory.__init__(self, url, debugWamp)
Beispiel #14
0
 def __init__(self, *args, **kwargs):
     self.gateway = kwargs.pop('gateway')
     WampServerFactory.__init__(self, *args, **kwargs)
     self.connected_clients = []
Beispiel #15
0
 def __init__(self, url):
     WampServerFactory.__init__(self, url)
     self.mcuProtocol = McuProtocol(self)
Beispiel #16
0
 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)
Beispiel #17
0
 def __init__(self, url, dbpool, services):
     WampServerFactory.__init__(self, url, debugApp=False)
     self.dbpool = dbpool
     self.services = services
     self.restartRequired = False
Beispiel #18
0
 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);
Beispiel #19
0
 def __init__(self, url):
    WampServerFactory.__init__(self, url)
    self.mcuProtocol = McuProtocol(self)
Beispiel #20
0
   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")
 def __init__(self, url, dbpool, services):
    WampServerFactory.__init__(self, url, debugApp = False)
    self.dbpool = dbpool
    self.services = services
    self.restartRequired = False
Beispiel #22
0
 def __init__(self, url, debugWamp=False):
     WampServerFactory.__init__(self, url, debugWamp=debugWamp)
     self.clients = []