|
|
1.1 root 1: Sample: Communications API Function Demonstration
2:
3: Summary:
4:
5: The COMM sample application is designed to demonstrate the
6: basics of using the Win32 communications API functions while
7: maintaining a common code base with Win16 code.
8:
9: More Information:
10:
11: The COMM program performs communications using the Windows
12: functions OpenFile, ReadFile, SetCommState, SetCommMask,
13: WaitCommEvent, WriteFile and CloseFile.
14:
15: This sample creates a background thread to watch for COMM
16: receiver events and posts a notification message to the main
17: terminal window. Foreground character processing is written
18: to the communications port.
19:
20: Simple TTY character translation is performed and a screen
21: buffer is implemented for use as the I/O window.
22:
23: Overlapped file I/O techniques are demonstrated.
24:
25: How To Use:
26:
27: The baud rate, data bits, stop bits, parity, port, RTS/CTS
28: handshaking, DTR/DSR handshaking, and XON/XOFF handshaking
29: can be changed under the Settings menu item.
30:
31: Once the communications settings are setup, the Action menu
32: item can be selected to connect or disconnect the TTY
33: program.
34:
35:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.