(handler, address, authkey)
| 27 | from threading import Thread |
| 28 | |
| 29 | def rpc_server(handler, address, authkey): |
| 30 | sock = Listener(address, authkey=authkey) |
| 31 | while True: |
| 32 | client = sock.accept() |
| 33 | t = Thread(target=handler.handle_connection, args=(client,)) |
| 34 | t.daemon = True |
| 35 | t.start() |
| 36 | |
| 37 | # Some remote functions |
| 38 | def add(x, y): |
no test coverage detected