Category : C Source Code
Archive   : COMMC.ZIP
Filename : COMM.DOC

Output of file : COMM.DOC contained in archive : COMMC.ZIP
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


This will create a COMM.OBJ file which contains the functions. To test
them, compile the TERM.C program as follows:



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.

Mario Giannini
Compuserve ID 76276,1576

  3 Responses to “Category : C Source Code
Archive   : COMMC.ZIP
Filename : COMM.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: