def __init__(self, sock): self.log = logging.getLogger("com.fussyware.edproxy") self._running = True self._initialized = False self._lock = threading.Lock() self._conditional = threading.Condition(self._lock) self._register_list = list() self._start_time = None self._peername = sock.getpeername() self._wrapper = wrapper.SocketWrapper(sock) self._json_items = ijpython.JsonItems(self._wrapper) self._heartbeat = None self._heartbeat_event = threading.Event() self._event_queue = edevent.EDEventQueue() self._recv_event_queue = edevent.EDEventQueue() _thread = threading.Thread(target=self.__run) _thread.daemon = True _thread.start()
def __init__(self, port): self._log = logging.getLogger("com.fussyware.edproxy") self._port = port self._running = False self._lock = threading.Lock() self._event_queue = edevent.EDEventQueue()
def __init__(self, port): self.log = logging.getLogger("com.fussyware.edproxy") self._running = False self._initialized = False self._lock = threading.Lock() self._conditional = threading.Condition(self._lock) self._port = port self._event_queue = edevent.EDEventQueue() self._thread = None
def open(self, *args): self._log = logging.getLogger("com.fussyware.edproxy") self.stream.set_nodelay(True) self._peername = self.stream.socket.getpeername() self._heartbeat = None self._heartbeat_event = threading.Event() self._event_queue = edevent.EDEventQueue() self._recv_event_queue = edevent.EDEventQueue() self._register_list = list() self._start_time = None self._lock = threading.Lock() self._conditional = threading.Condition(self._lock) self._running = True self._initialized = False self._websocket_server._post(self, self._peername)