#include <RmpUdp.h>
Classes | |
class | Impl |
Public Member Functions | |
virtual bool | Receive (Bytes &rData, size_t size) |
RmpUdp (const std::string &rIpAddress, uint16_t portNumber) | |
virtual bool | Send (uint16_t commandId, uint32_t value1, uint32_t value2) |
virtual | ~RmpUdp () |
Private Attributes | |
std::unique_ptr< Impl > | m_pImpl |
segway::RmpUdp::RmpUdp | ( | const std::string & | rIpAddress, |
uint16_t | portNumber | ||
) |
Constructor
rIpAddress | ip address of the rmp |
portNumber | port number of the rmp |
Definition at line 78 of file RmpUdp.cpp.
segway::RmpUdp::~RmpUdp | ( | ) | [virtual] |
Destructor
Definition at line 85 of file RmpUdp.cpp.
bool segway::RmpUdp::Receive | ( | Bytes & | rData, |
size_t | size | ||
) | [virtual] |
Receive response from rmp
rData | response |
size | expected size of data to receive [in byte] |
Implements segway::RmpTransport.
Definition at line 112 of file RmpUdp.cpp.
bool segway::RmpUdp::Send | ( | uint16_t | commandId, |
uint32_t | value1, | ||
uint32_t | value2 | ||
) | [virtual] |
Send command to rmp
commandId | command id |
value1 | first value |
value2 | second value |
Implements segway::RmpTransport.
Definition at line 88 of file RmpUdp.cpp.
std::unique_ptr<Impl> segway::RmpUdp::m_pImpl [private] |