#include <sick_tim_common_tcp.h>
Definition at line 48 of file sick_tim_common_tcp.h.
sick_tim::SickTimCommonTcp::SickTimCommonTcp |
( |
const std::string & |
hostname, |
|
|
const std::string & |
port, |
|
|
int & |
timelimit, |
|
|
AbstractParser * |
parser |
|
) |
| |
sick_tim::SickTimCommonTcp::~SickTimCommonTcp |
( |
| ) |
|
|
virtual |
void sick_tim::SickTimCommonTcp::checkDeadline |
( |
| ) |
|
|
protected |
int sick_tim::SickTimCommonTcp::close_device |
( |
| ) |
|
|
protectedvirtual |
int sick_tim::SickTimCommonTcp::get_datagram |
( |
unsigned char * |
receiveBuffer, |
|
|
int |
bufferSize, |
|
|
int * |
actual_length |
|
) |
| |
|
protectedvirtual |
Read a datagram from the device.
- Parameters
-
[in] | receiveBuffer | data buffer to fill |
[in] | bufferSize | max data size to write to buffer (result should be 0 terminated) |
[out] | actual_length | the actual amount of data written |
Implements sick_tim::SickTimCommon.
Definition at line 269 of file sick_tim_common_tcp.cpp.
void sick_tim::SickTimCommonTcp::handleRead |
( |
boost::system::error_code |
error, |
|
|
size_t |
bytes_transfered |
|
) |
| |
|
inlineprotected |
int sick_tim::SickTimCommonTcp::init_device |
( |
| ) |
|
|
protectedvirtual |
int sick_tim::SickTimCommonTcp::readWithTimeout |
( |
size_t |
timeout_ms, |
|
|
char * |
buffer, |
|
|
int |
buffer_size, |
|
|
int * |
bytes_read = 0 , |
|
|
bool * |
exception_occured = 0 |
|
) |
| |
|
protected |
int sick_tim::SickTimCommonTcp::sendSOPASCommand |
( |
const char * |
request, |
|
|
std::vector< unsigned char > * |
reply |
|
) |
| |
|
protectedvirtual |
Send a SOPAS command to the device and print out the response to the console.
Send a SOPAS command to the device and print out the response to the console.
Implements sick_tim::SickTimCommon.
Definition at line 227 of file sick_tim_common_tcp.cpp.
size_t sick_tim::SickTimCommonTcp::bytes_transfered_ |
|
private |
boost::asio::deadline_timer sick_tim::SickTimCommonTcp::deadline_ |
|
private |
boost::system::error_code sick_tim::SickTimCommonTcp::ec_ |
|
private |
std::string sick_tim::SickTimCommonTcp::hostname_ |
|
private |
boost::asio::streambuf sick_tim::SickTimCommonTcp::input_buffer_ |
|
private |
boost::asio::io_service sick_tim::SickTimCommonTcp::io_service_ |
|
private |
std::string sick_tim::SickTimCommonTcp::port_ |
|
private |
boost::asio::ip::tcp::socket sick_tim::SickTimCommonTcp::socket_ |
|
private |
int sick_tim::SickTimCommonTcp::timelimit_ |
|
private |
The documentation for this class was generated from the following files: