source: rtems/testsuites/samples/loopback/loopback.scn @ 11925eef

4.115
Last change on this file since 11925eef was 25b957c1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/27/03 at 23:30:53

2003-01-27 Joel Sherrill <joel@…>

  • Makefile.am, configure.ac: Added new test loopback which shows how to use the loopback interface. Thank you Eric Norum for a portable target independent test which exercises the TCP/IP. This should prevent massive failures in the TCP/IP stack from reaching the street.
  • loopback/.cvsignore, loopback/Makefile.am, loopback/README, loopback/init.c, loopback/loopback.scn: New files.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1"Network" initializing!
2"Network" initialized!
3Try running client with no server present.
4Should fail with `connection refused'.
5Connect to server.
6Can't connect to server: Connection refused
7Client closing connection.
8
9Start server.
10
11Try running client with server present.
12Create socket.
13Connect to server.
14Bind socket.
15Can't connect to server: Connection refused
16Client closing connection.
17Client task terminating.
18
19Try running two clients.
20Connect to server.
21Connect to server.
22ACCEPTED:7F000001
23ACCEPTED:7F000001
24Write 22-byte message to server.
25Write 22-byte message to server.
26Read 43 from server: Server received 22 (Hi there, server (2).)
27Read 43 from server: Server received 22 (Hi there, server (3).)
28Client closing connection.
29Client task terminating.
30Worker task terminating.
31Client closing connection.
32Client task terminating.
33Worker task terminating.
34
35Try running three clients.
36Connect to server.
37Connect to server.
38Connect to server.
39ACCEPTED:7F000001
40ACCEPTED:7F000001
41ACCEPTED:7F000001
42Write 22-byte message to server.
43Write 22-byte message to server.
44Write 22-byte message to server.
45Read 43 from server: Server received 22 (Hi there, server (4).)
46Read 43 from server: Server received 22 (Hi there, server (5).)
47Read 43 from server: Server received 22 (Hi there, server (6).)
48Client closing connection.
49Client task terminating.
50Worker task terminating.
51Client closing connection.
52Client task terminating.
53Worker task terminating.
54Client closing connection.
55Client task terminating.
56Worker task terminating.
Note: See TracBrowser for help on using the repository browser.