#include <rplidar_driver_TCP.h>
Public Member Functions | |
bool | bind (const char *ipStr, uint32_t port) |
void | close () |
int | recvdata (unsigned char *data, size_t size) |
int | senddata (const _u8 *data, size_t size) |
TCPChannelDevice () | |
bool | waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL) |
Public Attributes | |
rp::net::StreamSocket * | _binded_socket |
Definition at line 39 of file rplidar_driver_TCP.h.
Definition at line 43 of file rplidar_driver_TCP.h.
bool rp::standalone::rplidar::TCPChannelDevice::bind | ( | const char * | ipStr, |
uint32_t | port | ||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 45 of file rplidar_driver_TCP.h.
void rp::standalone::rplidar::TCPChannelDevice::close | ( | ) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 50 of file rplidar_driver_TCP.h.
int rp::standalone::rplidar::TCPChannelDevice::recvdata | ( | unsigned char * | data, |
size_t | size | ||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 65 of file rplidar_driver_TCP.h.
int rp::standalone::rplidar::TCPChannelDevice::senddata | ( | const _u8 * | data, |
size_t | size | ||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 61 of file rplidar_driver_TCP.h.
bool rp::standalone::rplidar::TCPChannelDevice::waitfordata | ( | size_t | data_count, |
_u32 | timeout = -1 , |
||
size_t * | returned_size = NULL |
||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 55 of file rplidar_driver_TCP.h.
Definition at line 42 of file rplidar_driver_TCP.h.