<s> from twisted . spread import pb <EOL> import twisted . internet . app <EOL> class ServerObject ( pb . Root ) : <EOL> def remote_add ( self , one , two ) : <EOL> answer = one + two <EOL> print "<STR_LIT>" , answer <EOL> return answer <EOL> def remote_subtract ( self , one , two ) : <EOL> return one - two <EOL> app = twisted . internet . app . Application ( "<STR_LIT>" ) <EOL> app . listenTCP ( <NUM_LIT> , pb . BrokerFactory ( ServerObject ( ) ) ) <EOL> app . run ( save = <NUM_LIT:0> ) </s>
