<s> from twisted . internet import reactor , protocol <EOL> class Echo ( protocol . Protocol ) : <EOL> """<STR_LIT>""" <EOL> def dataReceived ( self , data ) : <EOL> "<STR_LIT>" <EOL> self . transport . write ( data ) <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> factory = protocol . ServerFactory ( ) <EOL> factory . protocol = Echo <EOL> reactor . listenTCP ( <NUM_LIT> , factory ) <EOL> reactor . run ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
