TNET is a networking package based on Phil Karns KA9Q package.

I am currently getting a new release ready which I should be able
to post on 11/15.  Anyone wishes to make TNET available for anonymous
FTP please let me know so that I can FTP the package when ready.

************************************************************************
* Does anyone have a select system call patch for Minix 1.5(.10) since *
* this would improve TNET performance?                                 *
************************************************************************

***********************************************************************
* Does anyone have a session manager for pty's(since the pty patch is *
* against the standard tty files and not the virtual consoles)?       *
***********************************************************************

TNET runs on standard Minix PC 1.5(.10) with the following patches:

  The TNET kernel needs more than the standard of 20 files open at once
  and therefore a patch to allow more open files is needed.  I currently
  have mine set to 64.

  TNET uses named pipes and the NON-BLOCK patch and PIPE patches are needed.

  Though TNET creates the named pipes if they do not exist a patch to mknod
  to allow makeing names pipes is included.

  TNET uses vfprintf and needs the library function vfprintf.

  To allow telnetting into a Minix machine running TNET you will need
  pty's.

  To allow the standard date/time programs to function properly you
  will need to ctime patch.  You will also need this for my u-mail and
  w-mail patches.

All these patches are included in the package.

Although I say it runs on Minix PC (which I have) it should not be difficult
to get it running on any of the other platforms though I have not tried.


TNET protocols supported are IP, ICMP, UDP, TCP.

TNET drivers:
  SLIP - which also does dialing
  ETHER - uses /dev/ether device
  (any takers for CSLIP and PPP)

Current TNET TCP servers:              Current TNET TCP clients:
  daytimed(13)
  builtin-echo(7)
  builtin-discard(9)                     nntp
  fingerd(79)                            finger
  ftpd(21)                               ftp
  smtpd(25)                              smtp
  telnetd(23)                            telnet
  timed(37)                              netdate

Writing TNET started Servers:
  When a server program is started by TNET the programs stdin/stdout
  are the network link with the client coming in.  For instance here
  is the source for timed:

     (void) time(&now);
     nettime = now + (time_t) 2208988800L;  /* adjust for 1 Jan 1900 GMT */
     val = (u_long) nettime;
     val = htonl(val);
     (void) write(1, (char *) &val, sizeof(u_long));

Writing Clients/Servers:
  A simple call of:
     int tconnect(protocol, lport, port, ipaddr, flags, netin, netout)
            or
     int client(protocol, lport, port, ipaddr, netin, netout)
         (BTW, the client call is actually:
               tconnect(protocol, &lport, &port, &ipaddr, 1L, netin, netout))

  These calls create the network link and return netin/netout which are file
  descriptors across network link created.

Michael Temari                                    temari@temari.ae.ge.com
