1 | Simple test of kernel network code. |
---|
2 | Requires no network hardware since only the loopback network address is used. |
---|
3 | |
---|
4 | Output should look like: |
---|
5 | ======================================================================== |
---|
6 | "Network" initializing! |
---|
7 | "Network" initialized! |
---|
8 | Try running client with no server present. |
---|
9 | Should fail with `connection refused'. |
---|
10 | Connect to server. |
---|
11 | Can't connect to server: Connection refused |
---|
12 | Client closing connection. |
---|
13 | |
---|
14 | Start server. |
---|
15 | |
---|
16 | Try running client with server present. |
---|
17 | Create socket. |
---|
18 | Connect to server. |
---|
19 | Bind socket. |
---|
20 | Can't connect to server: Connection refused |
---|
21 | Client closing connection. |
---|
22 | Client task terminating. |
---|
23 | |
---|
24 | Try running two clients. |
---|
25 | Connect to server. |
---|
26 | Connect to server. |
---|
27 | ACCEPTED:7F000001 |
---|
28 | ACCEPTED:7F000001 |
---|
29 | Write 22-byte message to server. |
---|
30 | Write 22-byte message to server. |
---|
31 | Read 43 from server: Server received 22 (Hi there, server (2).) |
---|
32 | Read 43 from server: Server received 22 (Hi there, server (3).) |
---|
33 | Client closing connection. |
---|
34 | Client task terminating. |
---|
35 | Worker task terminating. |
---|
36 | Client closing connection. |
---|
37 | Client task terminating. |
---|
38 | Worker task terminating. |
---|
39 | |
---|
40 | Try running three clients. |
---|
41 | Connect to server. |
---|
42 | Connect to server. |
---|
43 | Connect to server. |
---|
44 | ACCEPTED:7F000001 |
---|
45 | ACCEPTED:7F000001 |
---|
46 | ACCEPTED:7F000001 |
---|
47 | Write 22-byte message to server. |
---|
48 | Write 22-byte message to server. |
---|
49 | Write 22-byte message to server. |
---|
50 | Read 43 from server: Server received 22 (Hi there, server (4).) |
---|
51 | Read 43 from server: Server received 22 (Hi there, server (5).) |
---|
52 | Read 43 from server: Server received 22 (Hi there, server (6).) |
---|
53 | Client closing connection. |
---|
54 | Client task terminating. |
---|
55 | Worker task terminating. |
---|
56 | Client closing connection. |
---|
57 | Client task terminating. |
---|
58 | Worker task terminating. |
---|
59 | Client closing connection. |
---|
60 | Client task terminating. |
---|
61 | Worker task terminating. |
---|