12 #ifndef SERIAL_CONNECTION_H
13 #define SERIAL_CONNECTION_H
60 #endif // #ifndef SERIAL_CONNECTION_H
SerialConfig class - declarations.
Connection class - declarations.
virtual std::string doReceiveMessage(Config::LengthFieldMessageLength messageLength)
Receives a message.
Configuration for a TCP/IP server.
Definition: serial_config.h:30
Serial connection (via a serial port).
Definition: serial_connection.h:25
SerialConnection(const SerialConfig &config)
Constructor.
int _serialFd
File descriptor to the serial port.
Definition: serial_connection.h:57
virtual size_t doSendMessage(const std::string &message)
Sends the selected message.
virtual ~SerialConnection()
Destructor.
virtual void close()
Closes an established TCP connection.
SerialConnection & operator=(const SerialConnection &)
std::tr1::uint32_t LengthFieldMessageLength
Message length type when using length field.
Definition: config.h:49
Abstract class for all connection types.
Definition: connection.h:28