#include <udp_sockets.h>
Definition at line 106 of file udp_sockets.h.
◆ UdpReceiverSocketImpl()
sick_scansegment_xd::UdpReceiverSocketImpl::UdpReceiverSocketImpl |
( |
| ) |
|
|
inline |
◆ ~UdpReceiverSocketImpl()
sick_scansegment_xd::UdpReceiverSocketImpl::~UdpReceiverSocketImpl |
( |
| ) |
|
|
inline |
◆ Init()
bool sick_scansegment_xd::UdpReceiverSocketImpl::Init |
( |
const std::string & |
udp_sender, |
|
|
int |
udp_port, |
|
|
bool |
blocking = false |
|
) |
| |
|
inline |
◆ port()
int sick_scansegment_xd::UdpReceiverSocketImpl::port |
( |
void |
| ) |
const |
|
inline |
◆ Receive() [1/2]
size_t sick_scansegment_xd::UdpReceiverSocketImpl::Receive |
( |
std::vector< uint8_t > & |
msg_payload | ) |
|
|
inline |
Reads blocking until some data has been received successfully or an error occurs. Returns the number of bytes received.
Definition at line 197 of file udp_sockets.h.
◆ Receive() [2/2]
size_t sick_scansegment_xd::UdpReceiverSocketImpl::Receive |
( |
std::vector< uint8_t > & |
msg_payload, |
|
|
double |
timeout, |
|
|
const std::vector< uint8_t > & |
udp_msg_start_seq |
|
) |
| |
|
inline |
Reads blocking until all bytes of a msgpack incl. header and crc have been received or an error occurs. Returns the number of bytes received.
Definition at line 212 of file udp_sockets.h.
◆ running()
bool& sick_scansegment_xd::UdpReceiverSocketImpl::running |
( |
void |
| ) |
|
|
inline |
Return true, if socket is ready to receive, or false otherwise. Set false to signal stop receiving
Definition at line 257 of file udp_sockets.h.
◆ m_recv_blocking
bool sick_scansegment_xd::UdpReceiverSocketImpl::m_recv_blocking |
|
protected |
◆ m_recv_flags
int sick_scansegment_xd::UdpReceiverSocketImpl::m_recv_flags |
|
protected |
◆ m_running
bool sick_scansegment_xd::UdpReceiverSocketImpl::m_running |
|
protected |
◆ m_udp_port
int sick_scansegment_xd::UdpReceiverSocketImpl::m_udp_port |
|
protected |
◆ m_udp_sender
std::string sick_scansegment_xd::UdpReceiverSocketImpl::m_udp_sender |
|
protected |
◆ m_udp_socket
SOCKET sick_scansegment_xd::UdpReceiverSocketImpl::m_udp_socket |
|
protected |
The documentation for this class was generated from the following file: