<s> """<STR_LIT>""" <EOL> from __future__ import print_function <EOL> from gevent . server import StreamServer <EOL> def echo ( socket , address ) : <EOL> print ( '<STR_LIT>' % address ) <EOL> socket . sendall ( b'<STR_LIT>' ) <EOL> rfileobj = socket . makefile ( mode = '<STR_LIT:rb>' ) <EOL> while True : <EOL> line = rfileobj . readline ( ) <EOL> if not line : <EOL> print ( "<STR_LIT>" ) <EOL> break <EOL> if line . strip ( ) . lower ( ) == b'<STR_LIT>' : <EOL> print ( "<STR_LIT>" ) <EOL> break <EOL> socket . sendall ( line ) <EOL> print ( "<STR_LIT>" % line ) <EOL> rfileobj . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> server = StreamServer ( ( '<STR_LIT>' , <NUM_LIT> ) , echo ) <EOL> print ( '<STR_LIT>' ) <EOL> server . serve_forever ( ) </s>
