ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/socket++-1.10/test/tsunwrite.C
Revision: 1.2
Committed: Mon Jun 10 14:10:44 2002 UTC (22 years, 4 months ago) by tdb
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Tidy up of files. These are all old things that are not only no longer used
but are also probably useless to anyone other than us. This saves checking
them out all the time, and makes the "cms/source" tree contain only current
stuff. They'll still exist in the attic's though :)

File Contents

# Content
1 // tsunwrite.cc. Test for -*- C++ -*- socket library
2 // Copyright (C) 1992,1993,1994 Gnanasekaran Swaminathan <gs4t@virginia.edu>
3 //
4 // Permission is granted to use at your own risk and distribute this software
5 // in source and binary forms provided the above copyright
6 // notice and this paragraph are preserved on all copies.
7 // This software is provided "as is" with no express or implied warranty.
8 //
9 // Version: 17Oct95 1.10
10
11 #include <sockunix.h>
12
13 int main(int ac, char** av)
14 {
15 if (ac < 2) {
16 cerr << "USAGE: " << av[0] << " socket_path_name data...\n";
17 return 1;
18 }
19
20 iosockunix iosun (sockbuf::sock_stream);
21
22 iosun->connect(av[1]);
23
24 char buf[128];
25
26 iosun >> buf;
27 cout << buf << ' ';
28 iosun >> buf;
29 cout << buf << endl;
30
31 while (*av) iosun << *av++ << ' ';
32 iosun << endl;
33
34 return 0;
35 }
36