Warning: Undefined array key "बहिः गच्छतु" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
136
Warning: Undefined array key "aksi" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
140
Warning: Undefined array key "नामपत्र" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
159
Warning: Undefined array key "नामपत्र" in
/home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line
181
Current File : //usr/lib64/python2.6/asynchat.pyo |
��
���Lc @ s� d Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z l Z d e i
f d � � YZ d d
d � � YZ d
d d � � YZ
d � Z d S( s� 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.
i����N( t deque( t py3kwarning( t filterwarningst catch_warningst
async_chatc B s� e Z d Z d Z d Z d d d � Z d � Z d � Z d � Z d � Z
d � Z d � Z d � Z
d
� Z d � Z d � Z d
� Z d � Z d � Z d � Z d � Z d � Z RS( s� This is an abstract class. You must derive from this class, and add
the two methods collect_incoming_data() and found_terminator()i c C s8 d | _ g | _ t � | _ t i i | | | � d S( Nt ( t ac_in_buffert incomingR t
producer_fifot asyncoret
dispatchert __init__( t selft sockt map( ( s /usr/lib64/python2.6/asynchat.pyR @ s c C s t d � � d S( Ns must be implemented in subclass( t NotImplementedError( R t data( ( s /usr/lib64/python2.6/asynchat.pyt collect_incoming_dataQ s c C s | i i | � d S( N( R t append( R R ( ( s /usr/lib64/python2.6/asynchat.pyt _collect_incoming_dataT s c C s d i | i � } | i 2| S( NR ( t joinR ( R t d( ( s /usr/lib64/python2.6/asynchat.pyt _get_dataW s c C s t d � � d S( Ns must be implemented in subclass( R ( R ( ( s /usr/lib64/python2.6/asynchat.pyt found_terminator\ s c C s
| | _ d S( sR Set the input delimiter. Can be a fixed string of any length, an integer, or NoneN( t
terminator( R t term( ( s /usr/lib64/python2.6/asynchat.pyt set_terminator_ s c C s | i S( N( R ( R ( ( s /usr/lib64/python2.6/asynchat.pyt get_terminatorc s c C s y | i | i � } Wn# t i j
o } | i � d SX| i | | _ x�| i o�t | i � } | i � } | p | i | i � d | _ qO t | t
� p t | t � o{ | } | | j o- | i | i � d | _ | i | | _ q| i | i | � | i | | _ d | _ | i
� qO t | � } | i i | � } | d j oG | d j o | i | i | � n | i | | | _ | i
� qO t | i | � } | o<