#include <socketComm.h>
Public Member Functions | |
bool | connect () |
bool | disconnect () |
int | recv (void *recvBuf, uint16_t maxBufLen) |
Receive Message Nonblocked. | |
int | send (uint8_t *sendBuf, uint16_t msglen) |
Send Message Nonblocked. | |
void | setConf (std::string gcsIP, uint16_t gcsPort, uint16_t locPort) |
SocketComm () | |
~SocketComm () | |
Private Attributes | |
struct sockaddr_in | m_gcsAddr |
struct sockaddr_in | m_locAddr |
int | m_sock |
long | m_timer |
Definition at line 26 of file socketComm.h.
dji2mav::SocketComm::SocketComm | ( | ) | [inline] |
Definition at line 28 of file socketComm.h.
dji2mav::SocketComm::~SocketComm | ( | ) | [inline] |
Definition at line 34 of file socketComm.h.
bool dji2mav::SocketComm::connect | ( | ) | [inline] |
Definition at line 62 of file socketComm.h.
bool dji2mav::SocketComm::disconnect | ( | ) | [inline] |
Definition at line 100 of file socketComm.h.
int dji2mav::SocketComm::recv | ( | void * | recvBuf, |
uint16_t | maxBufLen | ||
) | [inline] |
Receive Message Nonblocked.
recvBuf | : pointer to the receive buffer |
maxBufLen | : max length of of the buffer |
Definition at line 154 of file socketComm.h.
int dji2mav::SocketComm::send | ( | uint8_t * | sendBuf, |
uint16_t | msglen | ||
) | [inline] |
Send Message Nonblocked.
sendBuf | : pointer to the send buffer |
msglen | : length of message that is going to be sent |
Definition at line 127 of file socketComm.h.
void dji2mav::SocketComm::setConf | ( | std::string | gcsIP, |
uint16_t | gcsPort, | ||
uint16_t | locPort | ||
) | [inline] |
Definition at line 42 of file socketComm.h.
struct sockaddr_in dji2mav::SocketComm::m_gcsAddr [private] |
Definition at line 187 of file socketComm.h.
struct sockaddr_in dji2mav::SocketComm::m_locAddr [private] |
Definition at line 188 of file socketComm.h.
int dji2mav::SocketComm::m_sock [private] |
Definition at line 189 of file socketComm.h.
long dji2mav::SocketComm::m_timer [private] |
Definition at line 190 of file socketComm.h.