Public Member Functions | Private Attributes
dji2mav::SocketComm Class Reference

#include <socketComm.h>

List of all members.

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

Detailed Description

Definition at line 26 of file socketComm.h.


Constructor & Destructor Documentation

Definition at line 28 of file socketComm.h.

Definition at line 34 of file socketComm.h.


Member Function Documentation

bool dji2mav::SocketComm::connect ( ) [inline]

Definition at line 62 of file socketComm.h.

Definition at line 100 of file socketComm.h.

int dji2mav::SocketComm::recv ( void *  recvBuf,
uint16_t  maxBufLen 
) [inline]

Receive Message Nonblocked.

Parameters:
recvBuf: pointer to the receive buffer
maxBufLen: max length of of the buffer
Returns:
Bytes received. Return -1 for no datagram or -2 for fail

Definition at line 154 of file socketComm.h.

int dji2mav::SocketComm::send ( uint8_t *  sendBuf,
uint16_t  msglen 
) [inline]

Send Message Nonblocked.

Parameters:
sendBuf: pointer to the send buffer
msglen: length of message that is going to be sent
Returns:
Bytes that is sent. Return -1 if it fails

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.


Member Data Documentation

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.

Definition at line 189 of file socketComm.h.

Definition at line 190 of file socketComm.h.


The documentation for this class was generated from the following file:


dji_sdk_dji2mav
Author(s):
autogenerated on Thu Jun 6 2019 17:55:37