<s> from twisted . internet import protocol , reactor <EOL> from twisted . protocols import basic <EOL> class FingerProtocol ( basic . LineReceiver ) : <EOL> def lineReceived ( self , user ) : <EOL> self . transport . write ( self . factory . getUser ( user ) + "<STR_LIT:\r\n>" ) <EOL> self . transport . loseConnection ( ) <EOL> class FingerFactory ( protocol . ServerFactory ) : <EOL> protocol = FingerProtocol <EOL> def getUser ( self , user ) : <EOL> return "<STR_LIT>" <EOL> reactor . listenTCP ( <NUM_LIT> , FingerFactory ( ) ) <EOL> reactor . run ( ) </s>
