@ -1,6 +1,8 @@
import pyreactor, time
from testclient import TestClient
import cProfile as profile
def main():
s = pyreactor.Server("127.0.0.1", 4006, TestClient)
c = TestClient(host="127.0.0.1", port=4006)
@ -10,3 +12,5 @@ reactor = pyreactor.Reactor()
reactor.add(s)
reactor.add(c)
reactor.loop()
profile.run("main()")