#NEWLINE# def run_main_host( kernel , rpc_port ) : #NEWLINE# #INDENT# ' Runs main RPC server. ' #NEWLINE# heartbeat = Heartbeat ( ) #NEWLINE# reactor . listenTCP ( rpc_port , RPCHostFactory ( kernel , heartbeat ) ) #NEWLINE# logging . info ( 'RPC:\tRPC server started on port %s...' , rpc_port ) #NEWLINE# reactor . callLater ( 5 , update_callback , kernel , heartbeat ) #NEWLINE# reactor . run ( )