Public Types | Public Member Functions | Protected Member Functions | List of all members
rp::net::SocketBase Class Referenceabstract

#include <socket.h>

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

Public Types

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 }
 

Public Member Functions

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 ()
 

Protected Member Functions

 SocketBase ()
 

Detailed Description

Definition at line 64 of file socket.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DEFAULT_SOCKET_TIMEOUT 

Definition at line 80 of file socket.h.

Enumerator
SOCKET_DIR_RD 
SOCKET_DIR_WR 
SOCKET_DIR_BOTH 

Definition at line 74 of file socket.h.

Enumerator
SOCKET_FAMILY_INET 
SOCKET_FAMILY_INET6 
SOCKET_FAMILY_RAW 

Definition at line 67 of file socket.h.

Constructor & Destructor Documentation

virtual rp::net::SocketBase::~SocketBase ( )
inlinevirtual

Definition at line 84 of file socket.h.

rp::net::SocketBase::SocketBase ( )
inlineprotected

Definition at line 94 of file socket.h.

Member Function Documentation

virtual u_result rp::net::SocketBase::bind ( const SocketAddress )
pure virtual
virtual void rp::net::SocketBase::dispose ( )
pure virtual
virtual u_result rp::net::SocketBase::getLocalAddress ( SocketAddress )
pure virtual
virtual u_result rp::net::SocketBase::setTimeout ( _u32  timeout,
socket_direction_mask  msk = SOCKET_DIR_BOTH 
)
pure virtual
virtual u_result rp::net::SocketBase::waitforData ( _u32  timeout = DEFAULT_SOCKET_TIMEOUT)
pure virtual
virtual u_result rp::net::SocketBase::waitforSent ( _u32  timeout = DEFAULT_SOCKET_TIMEOUT)
pure virtual

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


rplidar_ros
Author(s):
autogenerated on Wed Jan 1 2020 04:01:40