#include <commplc.h>
Inheritance diagram for CommPLC:


This class was created to keep the same interface for the programs made for the communication between two computers and the programs made for the communication between a PLC modem and a computer. Thus, the functions in this class map the functions of the general Communication class (communication.h) onto the functions of the PLC modem (plcmodem.h).
Public Member Functions | |
| CommPLC (const char *device) | |
| Initializes the communication wiht the PLC modem. | |
| ~CommPLC (void) | |
| Finishes the communication with the PLC modem. | |
| int | send (unsigned char const *buffer, int numBytes) |
| Transmits data through the the PLC modem. | |
| int | receive (unsigned char *buffer_receive, int numBytes) |
| Receives data from the the PLC modem. | |
|
||||||||||||
|
Receives data from the the PLC modem.
Implements Communication. |
|
||||||||||||
|
Transmits data through the the PLC modem.
Implements Communication. |
1.3.7