The following files are part of COMM.ARC:
COMM.C - Used to create a .OBJ which contains all the communications
COMM.H - File with documentation for functions, and prototypes.
TERM.C - Sample terminal program using the communications functions.
The COMM.C file creates functions for an interrupt-driven communications
handler. The default buffer size is 4K but can be increased to a larger
value by performing the following in your code:
extern int BufSize;
Please note that the above assignment must be done before the functions
are called to setup the interrupts.
To compile the COMM.C file, using one of the following lines:
CL (or QCL) /c COMM.C
TCC -c COMM.C
This will create a COMM.OBJ file which contains the functions. To test
them, compile the TERM.C program as follows:
CL (or QCL) TERM.C COMM.OBJ
TCC TERM.C COMM.OBJ
When the above steps are performed, the TERM.EXE file should have been
created. This program is hard coded to work with a modem at 1200 baud
connect to COM1:. Read the .H file for information on changing the
baud or other settings via the PortInit function.
The TERM.EXE program is very simple and will allow you to communicate
with your modem as a dumb terminal. Modem commands like "ATH" to hangup
and "ATDTxxxxxx" to dial are required. Make sure your modem is on and
connected to your computer. If all goes well, characters you type on
the keyboard are sent to the modem, the modem then sends them back via
the COM port, where TERM.EXE will get them back and display them for you.
Compuserve ID 76276,1576