| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.14/test/support/__pycache__/ |
Upload File : |
+
��3jS- � �f � R t ^ RIHt ^ RIHt ! R R]P
4 t ! R R4 tR tR# ) a� A class supporting chat-style (command/response) protocols.
This class adds support for 'chat' style protocols - where one side
sends a 'command', and the other sends a response (examples would be
the common internet protocols - smtp, nntp, ftp, etc..).
The handle_read() method looks at the input stream for the current
'terminator' (usually '\r\n' for single-line responses, '\r\n.\r\n'
for multi-line output), calling self.found_terminator() on its
receipt.
for example:
Say you build an async nntp client using this class. At the start
of the connection, you'll have self.terminator set to '\r\n', in
order to process the single-line greeting. Just before issuing a
'LIST' command you'll set it to '\r\n.\r\n'. The output of the LIST
command will be accumulated (using your own 'collect_incoming_data'
method) up to the terminator, and then control will be returned to
you - by calling your self.found_terminator() method.
)�deque)�asyncorec � a � ] tR t^;t o RtRtRt^ tRtRR lt R t
R tR tR t
R
tR tR tR
tR tR tR tR tR tR tR tR tRtV tR# )�
async_chatz�This is an abstract class. You must derive from this class, and add
the two methods collect_incoming_data() and found_terminator()i zlatin-1Nc � � R V n . V n \ 4 V n \ P
P
WV4 R# )� N)�ac_in_buffer�incomingr �
producer_fifor �
dispatcher�__init__)�self�sock�maps &&&�,/usr/lib/python3.14/test/support/asynchat.pyr �async_chat.__init__J s5 � ����
��
� #�W������$�$�T��5r c � � \ R 4 h�zmust be implemented in subclass��NotImplementedError�r
�datas &&r �collect_incoming_data� async_chat.collect_incoming_dataX � � �!�"C�D�Dr c �<