

def main():
    loop = pyev.default_loop()
    signal_handler = whizzer.signal_handler(loop)
    signal_handler.start()
    factory = EchoProtocolFactory()
    server = whizzer.TcpServer(loop, factory, '127.0.0.1', 2000, 256)
    stats = EchoStatistics(loop, factory)
    signal_handler.start()
    server.start()
    stats.start()
    loop.loop()

dataset/ETHPy150Open bfrog/whizzer/examples/server.py main/original