| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/tornado/__pycache__/ |
Upload File : |
�
��b$� � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlZ ddl
Z ddlmZ ddl
Z
ddlmZmZ ddlmZmZmZ ddl mZmZmZ ddlmZmZ ddlmZmZ dd lmZmZ dd
l m Z ddl!m"Z" ddl#m$Z$ dd
l%m&Z& ddl'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2 ddl3m4Z4 e(r0ddl5m6Z6 G d� de6� � Z7 G d� de6� � Z8 G d� de6� � Z9dZ: G d� de;� � Z< G d� de<� � Z= G d� de;� � Z> G d� de?� � Z@ G d � d!e jA jB � � ZCd"e*d#e*d$dfd%�ZD G d&� d'ejE � � ZF G d(� d)e?� � ZG G d*� d+e?� � ZH G d,� d-eF� � ZI G d.� d/e jJ � � ZKdddddde:dfd0e-eLejM f d1e+e0d2gdf d3e+eN d4e+e0e-deLeOf gdf d5e+e,eLe*f d6e+eN d7e+eN d8ePd9e+e.eL d$d:fd;�ZQdS )<a� Implementation of the WebSocket protocol.
`WebSockets <http://dev.w3.org/html5/websockets/>`_ allow for bidirectional
communication between the browser and server.
WebSockets are supported in the current versions of all major browsers,
although older versions that do not support WebSockets are still in use
(refer to http://caniuse.com/websockets for details).
This module implements the final version of the WebSocket protocol as
defined in `RFC 6455 <http://tools.ietf.org/html/rfc6455>`_. Certain
browser versions (notably Safari 5.x) implemented an earlier draft of
the protocol (known as "draft 76") and are not compatible with this module.
.. versionchanged:: 4.0
Removed support for the draft 76 protocol version.
� N)�urlparse)�Future�"future_set_result_unless_cancelled)�utf8�
native_str�
to_unicode)�gen�
httpclient�httputil)�IOLoop�PeriodicCallback)�StreamClosedError�IOStream)�gen_log�app_log)�simple_httpclient)�Queue)� TCPClient)�_websocket_mask)�
TYPE_CHECKING�cast�Any�Optional�Dict�Union�List� Awaitable�Callable�Tuple�Type)�
TracebackType)�Protocolc �. � e Zd Zdedefd�Zdedefd�ZdS )�_Compressor�data�returnc � � d S �N� ��selfr% s �3/usr/lib/python3/dist-packages/tornado/websocket.py�compressz_Compressor.compress? � � ��D� �modec � � d S r( r) )r+ r0 s r, �flushz_Compressor.flushB r. r/ N)�__name__�
__module__�__qualname__�bytesr- �intr2 r) r/ r, r$ r$ >