<s> """<STR_LIT>""" <EOL> import sys <EOL> from twisted . internet import stdio , protocol <EOL> from twisted . python import reflect <EOL> class HostPeerChild ( protocol . Protocol ) : <EOL> def connectionMade ( self ) : <EOL> self . transport . write ( '<STR_LIT:\n>' . join ( [ <EOL> str ( self . transport . getHost ( ) ) , <EOL> str ( self . transport . getPeer ( ) ) ] ) ) <EOL> self . transport . loseConnection ( ) <EOL> def connectionLost ( self , reason ) : <EOL> reactor . stop ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> reflect . namedAny ( sys . argv [ <NUM_LIT:1> ] ) . install ( ) <EOL> from twisted . internet import reactor <EOL> stdio . StandardIO ( HostPeerChild ( ) ) <EOL> reactor . run ( ) </s>
