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