1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
[thread: 80176, file: server.c, line: 120] worker start, id: 0
[thread: 80177, file: server.c, line: 120] worker start, id: 1
[thread: 80178, file: server.c, line: 120] worker start, id: 2
[thread: 80179, file: server.c, line: 120] worker start, id: 3
[thread: 80175, file: server.c, line: 232] main thread, msg from remote port: 50000, msg: (content: A, client_port: 50000, count: 0), hash to thread: 0
[thread: 80176, file: server.c, line: 96] connect with remote addr, (workerid: 0 <---> fd: 17 <---> remote_port: 50000), msg from main thread, msg: (content: A, client_port: 50000, count: 0)
[thread: 80175, file: server.c, line: 232] main thread, msg from remote port: 50001, msg: (content: B, client_port: 50001, count: 0), hash to thread: 1
[thread: 80177, file: server.c, line: 96] connect with remote addr, (workerid: 1 <---> fd: 18 <---> remote_port: 50001), msg from main thread, msg: (content: B, client_port: 50001, count: 0)
[thread: 80175, file: server.c, line: 232] main thread, msg from remote port: 50002, msg: (content: C, client_port: 50002, count: 0), hash to thread: 2
[thread: 80178, file: server.c, line: 96] connect with remote addr, (workerid: 2 <---> fd: 19 <---> remote_port: 50002), msg from main thread, msg: (content: C, client_port: 50002, count: 0)
[thread: 80175, file: server.c, line: 232] main thread, msg from remote port: 50003, msg: (content: D, client_port: 50003, count: 0), hash to thread: 3
[thread: 80179, file: server.c, line: 96] connect with remote addr, (workerid: 3 <---> fd: 20 <---> remote_port: 50003), msg from main thread, msg: (content: D, client_port: 50003, count: 0)
[thread: 80176, file: server.c, line: 65] msg from remote 127.0.0.1:50000, fd: 17, msg: (content: A, client_port: 50000, count: 1)
[thread: 80177, file: server.c, line: 65] msg from remote 127.0.0.1:50001, fd: 18, msg: (content: B, client_port: 50001, count: 1)
[thread: 80178, file: server.c, line: 65] msg from remote 127.0.0.1:50002, fd: 19, msg: (content: C, client_port: 50002, count: 1)
[thread: 80179, file: server.c, line: 65] msg from remote 127.0.0.1:50003, fd: 20, msg: (content: D, client_port: 50003, count: 1)
[thread: 80176, file: server.c, line: 65] msg from remote 127.0.0.1:50000, fd: 17, msg: (content: A, client_port: 50000, count: 2)
[thread: 80177, file: server.c, line: 65] msg from remote 127.0.0.1:50001, fd: 18, msg: (content: B, client_port: 50001, count: 2)
[thread: 80178, file: server.c, line: 65] msg from remote 127.0.0.1:50002, fd: 19, msg: (content: C, client_port: 50002, count: 2)
[thread: 80179, file: server.c, line: 65] msg from remote 127.0.0.1:50003, fd: 20, msg: (content: D, client_port: 50003, count: 2)
|