|
Modbus cpp 0.1
|
Public Member Functions | |
| Connection (int sockfd) noexcept | |
| Connection (const Connection ©)=delete | |
| Connection (Connection &&moved) noexcept | |
| Connection & | operator= (Connection &&other) noexcept |
| int | getSockfd () const |
| std::vector< uint8_t > | sendRequest (const MB::ModbusRequest &req) |
| std::vector< uint8_t > | sendResponse (const MB::ModbusResponse &res) |
| std::vector< uint8_t > | sendException (const MB::ModbusException &ex) |
| MB::ModbusRequest | awaitRequest () |
| MB::ModbusResponse | awaitResponse () |
| std::vector< uint8_t > | awaitRawMessage () |
| uint16_t | getMessageId () const |
| void | setMessageId (uint16_t messageId) |
Static Public Member Functions | |
| static Connection | with (std::string addr, int port) |
Static Public Attributes | |
| static const unsigned int | DefaultTCPTimeout = 500 |