()
| 809 | return 0 |
| 810 | |
| 811 | def client(): |
| 812 | # give time for the server to listen |
| 813 | time.sleep(3) |
| 814 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| 815 | s.connect(("127.0.0.1", 8000)) |
| 816 | s.send(b"hello world") |
| 817 | s.close() |
| 818 | |
| 819 | rootfs = "../examples/rootfs/x8664_linux" |
| 820 | argv = r"../examples/rootfs/x8664_linux/bin/x8664_onestraw_server s".split() # s means 'server mode' |