This is the Watt-32 library compiled with DJGPP.

    Watt-32 is a library for making networked TCP/IP programs in the language
    of C and C++ under DOS and Windows-NT.  Both 16-bit real-mode and 32-bit
    protected-mode is supported.  For DOS, Watt-32 requires a packet-driver
    (PKTDRVR) to access the data-link layer.  Futher information about this
    library can be optained at:
      <http://www.watt-32.net>



1.  DJGPP specific changes.
    =======================

    The -gcoff flag has been removed from all Makefiles.  If this is not done
    all binries produced with this library will abort with SIGSEGV.  This is
    true at least if gcc46N and later is used.

    The -march=i386 -mtune=i586 have been added to CFLAGS to generate i386
    compatible code.  These are the same flags that are used to build the
    C library of DJGPP.  These flags may not work with very old compilers
    and may be adjusted accordingly.

    The dj_err program has been recompiled.  This is necessary to produce an
    up-to-date sys_errlist[] for the different versions of djgpp.

    The test programs stored in /src/tests have not tested by me.  They may
    be compilable and may work or not.  If they do not work, fix them and send
    me a patch.  To fix them you are alone.

    This source archive has been created combining watt32s-2.2-dev.10.zip and
    and small parts from watt32b-2.2-dev.10.zip.  Both have been downloaded
    from:
      <http://www.watt-32.net>
    This source archive contains the complete content of watt32s-2.2-dev.10.zip
    and the djgpp specific makefiles from the /bin directory of watt32b-2.2-dev.10.zip
    together with ping.c and tcpinfo.c.  This two programs are probably the
    most important to make a very first check if the library and the network
    connection really work.  I have not tried to build any of the other
    programs stored in watt32b-2.2-dev.10.zip.  The may work or not.  If you
    need them, you are alone.  If you really want to build them, download
    watt32b-2.2-dev.10.zip and copy the /bin directory into the directory tree
    created by zip archive.
    Please, pay attention to not replace the DJGPP specific makefiles provided
    by this archive or the binaries will be build with coff debug format instead
    dwarf2 debug format.  This usually leads to SIGSEGV at run time.

    I have tested this library only on MS-DOS 6.22 using VMware.  I have created
    a NAT network connecting two identical MS-DOS VMWare clones configured by
    DHCP.  Only ping test were made.  For DOS a packet driver is required.
    I have used the one stored in pcntpk.zip.  I do not remember from where
    I have downloaded it, but anyway you need to install the pocket driver that
    matches the network hardware you are using so you are alone here again.
    I have _NOT_ tested the library with any windows version.

    The /bin directory contains all configuration files like wattcp.cfg, etc.
    provided with by watt32s-2.2-dev.10.zip.  I have not modified them.  You
    must adjust them according to your network hardware anyway.  Here you are
    alone.  Please, read the original documentation.  I have no major experience
    neither using WATT-32 nor using DJGPP for DOS networking.

    As usual the DJGPP specific changes have been documented by diffs files
    stored in the /djgpp directory.


2:  Installing the binary package.
    ==============================

    Copy the binary distribution into the top DJGPP installation directory
    and unzip it running *ONE* of the following commands:
      unzip32 wat3222b.zip      or
      djtarx wat3222b.zip       or
      pkunzip -d wat3222b.zip

    It will create a /watt directory into the top DJGPP installation directory.
    To use the library you must set the WATT_ROOT environment variable.  E.g.:
      set  WATT_ROOT=%DJGPP%\watt

    For further information about WATT-32 please read the readme and install
    files stored in %DJGPP%\watt.


3:  Building the binaries from sources.
    ===================================

    To build the library and binaries you must install at least the following
    binary packages:
      gcc473b, bnu224b, mak40b and sed421b.
    I have not tested with any previous versions of these binaries.  Especially
    I have not tried any versions previous neither of gcc473 nor of bnu224.
    I have no intentions to support any older versions of the compiler and
    binutils.
    All these packages can be found in the v2gnu directory of ftp.delorie.com
    and any mirror.

    Create a temporary directory. Copy the source package: wat3222s.zip
    into the directory and unzip it running ONE of the following commands:
      unzip32 wat3222s.zip      or
      djtarx wat3222s.zip       or
      pkunzip -d wat3222s.zip

    Set the WATT_ROOT environment variable.  It must point to the directory
    where the /src/makefile.all is stored.  E.g.: if the source archive has
    been unziped in z:/tmp, then WATT_ROOT must be set to:
      WATT_ROOT=z:\tmp\contrib\watt

    cd into /contrib/watt/util and run the command:
      make -f errnos.mak dj_err.exe
    This binary is required by the build process of the library.

   cd into /contrib/watt/src and configure the sources by running the batch
   file:
     configur.bat djgpp
   This will create the required makefile for DJGPP and all other required
   files to compile the library.
   Now you can build the library by running the command:
     make -f djgpp.mak

   After having build the library, you can build the binaries ping.exe and
   tcpinfo.exe.  To this purpose, cd into /contrib/watt/bin and run the
   command:
     make -f djgpp.mak ping.exe tcpinfo.exe

   There is no installation target in the makefiles.  You can create a
   directory where you want to install the library.  Make a /bin, /inc
   and /lib directory.  Copy the *.cfg files from the /contrib/watt/bin
   into the new /bin directory, copy the contents of the /contrib/watt/inc
   directory into the new /inc directory _preserving_ the directory tree.
   Copy libwatt.a from /contrib/watt/lib into the new /lib directory.  Then
   set WATT_ROTT environment variable to point to the directory where the
   library and headers have been installed.


   Send suggestions and bug reports concerning the DJGPP port to
   comp.os.msdos.djgpp or <djgpp@delorie.com>.


Enjoy.

        Guerrero, Juan Manuel <juan.guerrero@gmx.de>
