Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
rp::net::DGramSocket Class Referenceabstract

#include <socket.h>

Inheritance diagram for rp::net::DGramSocket:
Inheritance graph
[legend]

Public Member Functions

virtual u_result recvFrom (void *buf, size_t len, size_t &recv_len, SocketAddress *sourceAddr=NULL)=0
 
virtual u_result sendTo (const SocketAddress &target, const void *buffer, size_t len)=0
 
- Public Member Functions inherited from rp::net::SocketBase
virtual u_result bind (const SocketAddress &)=0
 
virtual void dispose ()=0
 
virtual u_result getLocalAddress (SocketAddress &)=0
 
virtual u_result setTimeout (_u32 timeout, socket_direction_mask msk=SOCKET_DIR_BOTH)=0
 
virtual u_result waitforData (_u32 timeout=DEFAULT_SOCKET_TIMEOUT)=0
 
virtual u_result waitforSent (_u32 timeout=DEFAULT_SOCKET_TIMEOUT)=0
 
virtual ~SocketBase ()
 

Static Public Member Functions

static DGramSocketCreateSocket (socket_family_t family=SOCKET_FAMILY_INET)
 

Protected Member Functions

 DGramSocket ()
 
virtual ~DGramSocket ()
 
- Protected Member Functions inherited from rp::net::SocketBase
 SocketBase ()
 

Additional Inherited Members

- Public Types inherited from rp::net::SocketBase
enum  { DEFAULT_SOCKET_TIMEOUT = 10000 }
 
enum  socket_direction_mask { SOCKET_DIR_RD = 0x1, SOCKET_DIR_WR = 0x2, SOCKET_DIR_BOTH = (SOCKET_DIR_RD | SOCKET_DIR_WR) }
 
enum  socket_family_t { SOCKET_FAMILY_INET = 0, SOCKET_FAMILY_INET6 = 1, SOCKET_FAMILY_RAW = 2 }
 

Detailed Description

Definition at line 131 of file socket.h.

Constructor & Destructor Documentation

virtual rp::net::DGramSocket::~DGramSocket ( )
inlineprotectedvirtual

Definition at line 146 of file socket.h.

rp::net::DGramSocket::DGramSocket ( )
inlineprotected

Definition at line 148 of file socket.h.

Member Function Documentation

DGramSocket * rp::net::DGramSocket::CreateSocket ( SocketBase::socket_family_t  family = SOCKET_FAMILY_INET)
static

Definition at line 841 of file linux/net_socket.cpp.

virtual u_result rp::net::DGramSocket::recvFrom ( void *  buf,
size_t  len,
size_t &  recv_len,
SocketAddress sourceAddr = NULL 
)
pure virtual
virtual u_result rp::net::DGramSocket::sendTo ( const SocketAddress target,
const void *  buffer,
size_t  len 
)
pure virtual

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


rplidar_ros
Author(s):
autogenerated on Wed Mar 20 2019 07:54:15