Modbus cpp 0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
MB::TCP::Connection Class Reference

Public Member Functions

 Connection (int sockfd) noexcept
 
 Connection (const Connection &copy)=delete
 
 Connection (Connection &&moved) noexcept
 
Connectionoperator= (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
 

The documentation for this class was generated from the following files: