Serial interface connection.
#include <SerialPort.hpp>
|
| SerialPort (Server &server, const char *serial_device) |
| Class constructor. More...
|
|
virtual bool | isClosed (void) const |
| Returns true if the connection is closed. More...
|
|
| Connection (Server &server, SOCKET fd) |
|
long long int | getServerMinusClientTime (void) const |
|
void | hangup () |
|
|
void | prepareSelectFds (fd_set &, fd_set &, int &) |
|
void | performReading (void) |
| Receives data from a TCP/IP connection and stores it in the read buffer.
|
|
void | performWriting (void) |
| Sends the contents of the write buffer over a TCP/IP connection.
|
|
| Socket (Server &server, SOCKET fd) |
|
int | readNonblocking (void *buf, int count) |
|
int | writeNonblocking (const void *buf, int count) |
|
|
char | read_buff [120] |
|
char * | read_buff_end |
|
char | write_buff [120] |
|
char * | write_buff_end |
|
Server & | server |
|
SOCKET | fd |
|
◆ SerialPort()
SerialPort::SerialPort |
( |
Server & |
server, |
|
|
const char * |
serial_device |
|
) |
| |
- Parameters
-
serial_device | A string containing the name of a serial port. On UNIX systems, this should be something like "/dev/ttyS0". On Microsoft Windows systems, this should be something like "COM1:". |
◆ isClosed()
virtual bool SerialPort::isClosed |
( |
void |
| ) |
const |
|
inlinevirtual |
This method has different platform-dependent implementations.
Reimplemented from Socket.