DESERT 3.5.1
|
#include <position_listener.h>
Public Member Functions | |
PositionListener (Owner *owner, uint16_t port, timeval read_timeout) | |
virtual | ~PositionListener () |
virtual void | Run () |
![]() | |
StoppableThread ()=default | |
virtual | ~StoppableThread ()=default |
bool | Start (bool exc_info=false) |
void | Stop (bool wait=false) |
template<class Rep , class Period > | |
void | Sleep (const std::chrono::duration< Rep, Period > &d) |
bool | Running () |
bool | StopRequested () |
Protected Member Functions | |
bool | ReadyToRead () |
Protected Attributes | |
SOCKET_TYPE | m_SocketFD {0} |
timeval | m_ReadTimeout |
uint16_t | m_Port |
Owner * | p_Owner |
Position listener thread with UDP socket.
Definition at line 64 of file position_listener.h.
|
inline |
Definition at line 67 of file position_listener.h.
|
inlinevirtual |
Definition at line 73 of file position_listener.h.
|
inlineprotected |
Uses select() to do a timed wait for new data.
Definition at line 149 of file position_listener.h.
|
inlinevirtual |
Thread function, runs until thread is stopped.
Implements StoppableThread.
Definition at line 79 of file position_listener.h.
|
protected |
UDP port number to read position from.
Definition at line 170 of file position_listener.h.
|
protected |
Timeout for the select call in ReadyToRead()
Definition at line 168 of file position_listener.h.
|
protected |
Socket descriptor.
Definition at line 166 of file position_listener.h.
|
protected |
Owner instance.
Definition at line 172 of file position_listener.h.