Using the chat class

The chat class provides a framework for communications across file descriptors with a peer. This is typically a serial-attached device but technically it could be any device or process that can communicate over file descriptors. This class is mainly used internally by the modemserver and modemclient classes but could be used by itself as well.

int main(int argc, const char **argv) {
}