<s> """<STR_LIT>""" <EOL> from twisted . protocols import socks <EOL> from twisted . python import usage <EOL> from twisted . application import internet <EOL> class Options ( usage . Options ) : <EOL> synopsis = "<STR_LIT>" <EOL> optParameters = [ [ "<STR_LIT>" , "<STR_LIT:i>" , "<STR_LIT:127.0.0.1>" , "<STR_LIT>" ] , <EOL> [ "<STR_LIT:port>" , "<STR_LIT:p>" , <NUM_LIT> , "<STR_LIT>" ] , <EOL> [ "<STR_LIT>" , "<STR_LIT:l>" , None , "<STR_LIT>" ] ] <EOL> compData = usage . Completions ( <EOL> optActions = { "<STR_LIT>" : usage . CompleteFiles ( "<STR_LIT>" ) , <EOL> "<STR_LIT>" : usage . CompleteNetInterfaces ( ) } <EOL> ) <EOL> longdesc = "<STR_LIT>" <EOL> def makeService ( config ) : <EOL> if config [ "<STR_LIT>" ] != "<STR_LIT:127.0.0.1>" : <EOL> print <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" <EOL> print <EOL> t = socks . SOCKSv4Factory ( config [ '<STR_LIT>' ] ) <EOL> portno = int ( config [ '<STR_LIT:port>' ] ) <EOL> return internet . TCPServer ( portno , t , interface = config [ '<STR_LIT>' ] ) </s>
