Example #1
0
    def __init__(self, consumer=None):
        WebSocketServerProtocol.__init__(self)
        self.connected = False
        self.producer = None
        self.streaming = True

        self.consumer = consumer
        self.paused = False
Example #2
0
    def __init__(self, server):
        WebSocketServerProtocol.__init__(self)

        self.server = server
        self.recv = str()

        self.stat = str()
        self.player = None
Example #3
0
    def __init__(self, board):
        WebSocketServerProtocol.__init__(self)
        self.log.debug = lambda *a, **kw: None
        self.board = board
        self.gpio_buffers = {}
        self.streaming = False
        self.inputs = []
        self.active = []
        self.start_time = time.time()*1000000
        self.t = None

        self.base = 100000
        self.window = 5000000
Example #4
0
    def __init__(self, server):
        WebSocketServerProtocol.__init__(self)

        self.server = server
        self.address = str()
        self.recv = bytes()

        self.pendingStat = None
        self.stat = str()
        self.player = None
        self.blocked = bool()

        self.dcTimer = None
Example #5
0
 def __init__(self):
     global server, channels
     WebSocketServerProtocol.__init__(self)
     server = {
             "name": args["name"],
             "channels": channels
         }
     self.port = 0
     self.plugged = False
     self.channel = ""
     self.creator = False
     self.maxclients = int(args["max_clients"])
     self.protected = args["protected"]
Example #6
0
    def __init__(self, server):
        WebSocketServerProtocol.__init__(self)

        self.server = server
        self.address = str()
        self.recv = bytearray()

        self.pendingStat = None
        self.stat = str()
        self.username = str()
        self.session = str()
        self.player = None
        self.blocked = bool()

        self.dcTimer = None
        self.maxConLifeTimer = None
Example #7
0
    def __init__(self, server):
        WebSocketServerProtocol.__init__(self)

        self.server = server
        self.address = str()
        self.recv = str()

        self.pendingStat = None
        self.stat = str()
        self.player = None
        self.trustCount = int()
        self.blocked = bool()

        self.lastX = int()
        self.lastXOk = True

        self.dcTimer = None
 def __init__(self, 
     ws_endpoint_str, 
     target_url, 
     origin=None, headers=None, verbose=False, reactor=None):
     """
     ws_endpoint_str: The proxied websocket endpoint string.
     target_url: should be a websocket URL, e.g. 'ws://127.0.0.1:9000'
     """
     WebSocketServerProtocol.__init__(self)
     self.verbose = verbose
     self.ws_endpoint_str = ws_endpoint_str
     self.target_url = target_url
     self.origin = origin
     self.headers = headers
     self._queue = []
     if self.reactor is None:
         from twisted.internet import reactor
         self.reactor = reactor
Example #9
0
    def __init__(self, server):
        WebSocketServerProtocol.__init__(self)

        self.server = server
        self.address = str()
        self.recv = bytearray()

        self.pendingStat = None
        self.stat = str()
        self.username = str()
        self.session = str()
        self.player = None
        self.blocked = bool()
        self.account = {}
        self.accountPriv = {}

        self.dcTimer = None
        #self.maxConLifeTimer = None
        self.dbSession = datastore.getDbSession()
Example #10
0
 def __init__(self,
              ws_endpoint_str,
              target_url,
              origin=None,
              headers=None,
              verbose=False,
              reactor=None):
     """
     ws_endpoint_str: The proxied websocket endpoint string.
     target_url: should be a websocket URL, e.g. 'ws://127.0.0.1:9000'
     """
     WebSocketServerProtocol.__init__(self)
     self.verbose = verbose
     self.ws_endpoint_str = ws_endpoint_str
     self.target_url = target_url
     self.origin = origin
     self.headers = headers
     self._queue = []
     if self.reactor is None:
         from twisted.internet import reactor
         self.reactor = reactor
Example #11
0
 def __init__(self, broker=None):
     WebSocketServerProtocol.__init__(self)
     self._discovery_response_defer = None
     self._protocol_response_defer = None
     self._open_protocol_response_defer = None
Example #12
0
 def __init__(self, broker=None):
     WebSocketServerProtocol.__init__(self)
     self._discovery_response_defer = None
     self._protocol_response_defer = None
     self._open_protocol_response_defer = None
Example #13
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
Example #14
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
 def __init__(self):
     PushjetProtocolBase.__init__(self, args.api, args.pub)
     WebSocketServerProtocol.__init__(self)
     self.onMessage = self.onClientMessage
Example #16
0
 def __init__(self, status):
     self.status = status
     WebSocketServerProtocol.__init__(self)
Example #17
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
     self.loop = LoopingCall(self.check_log)
     self.log_provider = None
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.name = None
     self.key = -1
Example #19
0
 def __init__(self, *a, **kw):
     self.buf_idx=0
     WebSocketServerProtocol.__init__(self, *a, **kw)
Example #20
0
 def __init__(self):
     PushjetProtocolBase.__init__(self, args.api, args.pub)
     WebSocketServerProtocol.__init__(self)
     self.onMessage = self.onClientMessage
Example #21
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.cookies = {}
     self.subscriptions = set()
Example #22
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.time_out_task = None
     self.connect_timeout = 30 * 60
Example #23
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.clientConnection = None
Example #24
0
 def __init__(self):
     self.isAuthed = False
     self.user_id = None
     self.user_name = None
     self.login = None
     WebSocketServerProtocol.__init__(self)
Example #25
0
 def __init__(self, addr, server):
     WebSocketServerProtocol.__init__(self)
     AbstractProtocol.__init__(self, addr, server)
     self.factory = server
Example #26
0
 def __init__(self, hub):
     self.hub = hub
     WebSocketServerProtocol.__init__(self)
Example #27
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
Example #28
0
	def __init__(self, *args, **kwargs):
		WebSocketServerProtocol.__init__(self, *args, **kwargs) #args needed?
Example #29
0
 def __init__(self, master):
     WebSocketServerProtocol.__init__(self)
     self.master = master
     self.qrefs = {}
     self.debug = self.master.config.www.get('debug', False)
Example #30
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     global client
     client = self
Example #31
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
     self.loop = LoopingCall(self.check_log)
     self.log_provider = None
Example #32
0
 def __init__(self, master):
     WebSocketServerProtocol.__init__(self)
     self.master = master
     self.qrefs = {}
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.service = None
Example #34
0
 def __init__(self, hub):
     self.hub = hub
     WebSocketServerProtocol.__init__(self)
Example #35
0
 def __init__(self, *a, **kw):
     self.buf_idx = 0
     WebSocketServerProtocol.__init__(self, *a, **kw)
Example #36
0
 def __init__(self, master):
     WebSocketServerProtocol.__init__(self)
     self.master = master
     self.qrefs = {}
     self.debug = self.master.config.www.get('debug', False)
Example #37
0
 def __init__(self):
     self.peerstr = ""
     WebSocketServerProtocol.__init__(self)
Example #38
0
    def __init__(self):
        self.settings = spec.supervisor.get_settings_object()

        WebSocketServerProtocol.__init__(self)
Example #39
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
Example #40
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.connected = False
Example #41
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self._client_id = next(self._client_ids)
     self._socket_open = False
     self._crawler = None
Example #42
0
 def __init__(self):
     self.settings = spec.supervisor.get_settings_object()
     WebSocketServerProtocol.__init__(self)
Example #43
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.widget_id = ""