Exemplo n.º 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
Exemplo n.º 2
0
    def __init__(self, server):
        WebSocketServerProtocol.__init__(self)

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

        self.stat = str()
        self.player = None
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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"]
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 8
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
Exemplo n.º 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()
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 13
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
Exemplo n.º 14
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
Exemplo n.º 15
0
 def __init__(self):
     PushjetProtocolBase.__init__(self, args.api, args.pub)
     WebSocketServerProtocol.__init__(self)
     self.onMessage = self.onClientMessage
Exemplo n.º 16
0
 def __init__(self, status):
     self.status = status
     WebSocketServerProtocol.__init__(self)
Exemplo n.º 17
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
     self.loop = LoopingCall(self.check_log)
     self.log_provider = None
Exemplo n.º 18
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.name = None
     self.key = -1
Exemplo n.º 19
0
 def __init__(self, *a, **kw):
     self.buf_idx=0
     WebSocketServerProtocol.__init__(self, *a, **kw)
Exemplo n.º 20
0
 def __init__(self):
     PushjetProtocolBase.__init__(self, args.api, args.pub)
     WebSocketServerProtocol.__init__(self)
     self.onMessage = self.onClientMessage
Exemplo n.º 21
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.cookies = {}
     self.subscriptions = set()
Exemplo n.º 22
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.time_out_task = None
     self.connect_timeout = 30 * 60
Exemplo n.º 23
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.clientConnection = None
Exemplo n.º 24
0
 def __init__(self):
     self.isAuthed = False
     self.user_id = None
     self.user_name = None
     self.login = None
     WebSocketServerProtocol.__init__(self)
Exemplo n.º 25
0
 def __init__(self, addr, server):
     WebSocketServerProtocol.__init__(self)
     AbstractProtocol.__init__(self, addr, server)
     self.factory = server
Exemplo n.º 26
0
 def __init__(self, hub):
     self.hub = hub
     WebSocketServerProtocol.__init__(self)
Exemplo n.º 27
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
Exemplo n.º 28
0
	def __init__(self, *args, **kwargs):
		WebSocketServerProtocol.__init__(self, *args, **kwargs) #args needed?
Exemplo n.º 29
0
 def __init__(self, master):
     WebSocketServerProtocol.__init__(self)
     self.master = master
     self.qrefs = {}
     self.debug = self.master.config.www.get('debug', False)
Exemplo n.º 30
0
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     global client
     client = self
Exemplo n.º 31
0
 def __init__(self, factory):
     WebSocketServerProtocol.__init__(self)
     self.factory = factory
     self.loop = LoopingCall(self.check_log)
     self.log_provider = None
Exemplo n.º 32
0
 def __init__(self, master):
     WebSocketServerProtocol.__init__(self)
     self.master = master
     self.qrefs = {}
 def __init__(self):
     WebSocketServerProtocol.__init__(self)
     self.service = None
Exemplo n.º 34
0
 def __init__(self, hub):
     self.hub = hub
     WebSocketServerProtocol.__init__(self)
Exemplo n.º 35
0
 def __init__(self, *a, **kw):
     self.buf_idx = 0
     WebSocketServerProtocol.__init__(self, *a, **kw)
Exemplo n.º 36
0
 def __init__(self, master):
     WebSocketServerProtocol.__init__(self)
     self.master = master
     self.qrefs = {}
     self.debug = self.master.config.www.get('debug', False)
Exemplo n.º 37
0
 def __init__(self):
     self.peerstr = ""
     WebSocketServerProtocol.__init__(self)
Exemplo n.º 38
0
    def __init__(self):
        self.settings = spec.supervisor.get_settings_object()

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