1 ettcp license 2 -------------------------------------------------------------------------- 3 Test TCP connection. Makes a connection on port 5001 4 and transfers fabricated buffers or data copied from stdin. 5 6 Usable on 4.2, 4.3, and 4.1a systems by defining one of 7 BSD42 BSD43 (BSD41a) 8 Machines using System V with BSD sockets should define SYSV. 9 10 Modified for operation under 4.2BSD, 18 Dec 84 11 T.C. Slattery, USNA 12 Minor improvements, Mike Muuss and Terry Slattery, 16-Oct-85. 13 Modified in 1989 at Silicon Graphics, Inc. 14 catch SIGPIPE to be able to print stats when receiver has died 15 for tcp, don't look for sentinel during reads to allow small transfers 16 increased default buffer size to 8K, nbuf to 2K to transfer 16MB 17 moved default port to 5001, beyond IPPORT_USERRESERVED 18 make sinkmode default because it is more popular, 19 -s now means don't sink/source 20 count number of read/write system calls to see effects of 21 blocking from full socket buffers 22 for tcp, -D option turns off buffered writes (sets TCP_NODELAY sockopt) 23 buffer alignment options, -A and -O 24 print stats in a format that's a bit easier to use with grep & awk 25 for SYSV, mimic BSD routines to use most of the existing timing code 26 Modified by Steve Miller of the University of Maryland, College Park 27 -b sets the socket buffer size (SO_SNDBUF/SO_RCVBUF) 28 Modified Sept. 1989 at Silicon Graphics, Inc. 29 restored -s sense at request of tcs@brl 30 Modified Oct. 1991 at Silicon Graphics, Inc. 31 use getopt(3) for option processing, add -f and -T options. 32 SGI IRIX 3.3 and 4.0 releases don't need #define SYSV. 33 34 Modified by David Boreham <david@bozemanpass.com> 35 to support call back mode 36 37 Distribution Status - 38 Public Domain. Distribution Unlimited.