ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/socket++-1.10/test/tsecho.C
Revision: 1.1
Committed: Mon Feb 26 15:02:39 2001 UTC (24 years, 10 months ago) by ab11
Content type: text/plain
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Log Message:
Test programs for Networking class. Unused by the host

File Contents

# Content
1 #include <echo.h>
2 #include <stdlib.h>
3
4 int main (int ac, char** av)
5 {
6 if (ac != 2) {
7 cerr << "USAGE: " << av [0] << " portno\n";
8 return 1;
9 }
10
11 echo server (protocol::tcp);
12 server->serve_clients (atoi (av [1]));
13 return 2;
14 }