MCPcopy Create free account
hub / github.com/apache/thrift / main

Function main

tutorial/py.tornado/PythonServer.py:80–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def main():
81 handler = CalculatorHandler()
82 processor = Calculator.Processor(handler)
83 pfactory = TBinaryProtocol.TBinaryProtocolFactory()
84 server = TTornado.TTornadoServer(processor, pfactory)
85
86 print("Starting the server...")
87 server.bind(9090)
88 server.start(1)
89 ioloop.IOLoop.instance().start()
90 print("done.")
91
92
93if __name__ == "__main__":

Callers 1

PythonServer.pyFile · 0.70

Calls 4

bindMethod · 0.80
CalculatorHandlerClass · 0.70
startMethod · 0.45
instanceMethod · 0.45

Tested by

no test coverage detected