/* * Note from Dave Ljung: * * This is a scaled down version of the tcp package for usage * with the WizPort. Only the source for tcpserv is here - and * the login feature has been removed (it is taken care of in the * WizPort). To get the entire package, contact the author, Sam Lantinga */ This is my tcp package based on W. Richard Steven's networking code, from his book "UNIX Network Programming" I have designed the package to be self installing, configuring itself to each system it is on. I have done this in the grand style of GNU's bash, which startled me the first time I compiled it. :-) Included in this package is: tcpserv: A generic tcp network server. See tcpserv.man bgtcli: A simple tcp network client. See bgtcli.man connect: Reconnects bgtcli to a terminal if the system supports it. hostinfo: A simple program to find out information about a host name. All you have to do to compile this package is type ./Configure And then run 'make'. I have set the tcp package to compile on Sun/OS 4.x UNIX, AIX UNIX, AT&T System V.3.2 UNIX, ULTRIX 4.x, HP-UX 8-9.x, Linux, FreeBSD, NewsOS, Solaris 2.x, and BSD 4.2-3 UNIX. Under AT&T System V UNIX, a fork() runs much faster than the select(), but I kept the select() for portability reasons. If your system uses a shadowed password file, you probably won't be able to use the login feature of tcpserv. I have included support for Linux and SunOS type shadowing, but this also means that tcpserv MUST run as root to access the shadow passwords. This introduces security holes I don't plan to address. This package is under the standard NO-GUARANTEE disclaimer. Enjoy! -Sam Lantinga 12/19/93 slouken@toadflax.cs.ucdavis.edu tcpserv: Version 1.0 beta: Initial release 2/13/92 Version 2.0 beta: Second release 10/3/93 Added a login(1) feature and utmp logging. Version 2.0 : Internal Release 11/20/93 Added "-f max_proc" option Enhanced login(1) feature Cleaned up portability issues Version 2.1 : Third release 12/19/93 Added NETHOST environment variable Reintegrated the tty routines Removed error-print routines Removed TLI support files Added the -d option Cleaned up the tty routines bgtcli: Version 1.0 beta: Initial release 2/13/92 Version 1.0 : Second release 10/3/93 Fixed some bugs and portability problems. Version 1.1 : Third release 12/19/93 Reintegrated the tty routines Removed error-print routines