You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
415 B
Python
17 lines
415 B
Python
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)
|
|
|
|
c.send({"test": "just sending some test data...", "number": 41, "file": open("testdata.dat", "rb")})
|
|
|
|
reactor = pyreactor.Reactor()
|
|
reactor.add(s)
|
|
reactor.add(c)
|
|
reactor.loop()
|
|
|
|
profile.run("main()", None, "time")
|