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

#include <socket.h>

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

Public Types

enum  { MAX_BACKLOG = 128 }
 
- 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 }
 

Public Member Functions

virtual StreamSocketaccept (SocketAddress *pairAddress=NULL)=0
 
virtual u_result connect (const SocketAddress &pairAddress)=0
 
virtual u_result enableKeepAlive (bool enable=true)=0
 
virtual u_result enableNoDelay (bool enable=true)=0
 
virtual u_result getPeerAddress (SocketAddress &)=0
 
virtual u_result listen (int backlog=MAX_BACKLOG)=0
 
virtual u_result recv (void *buf, size_t len, size_t &recv_len)=0
 
virtual u_result send (const void *buffer, size_t len)=0
 
virtual u_result shutdown (socket_direction_mask mask)=0
 
virtual u_result waitforIncomingConnection (_u32 timeout=DEFAULT_SOCKET_TIMEOUT)=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 StreamSocketCreateSocket (socket_family_t family=SOCKET_FAMILY_INET)
 

Protected Member Functions

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

Detailed Description

Definition at line 98 of file socket.h.

Member Enumeration Documentation

anonymous enum
Enumerator
MAX_BACKLOG 

Definition at line 102 of file socket.h.

Constructor & Destructor Documentation

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

Definition at line 127 of file socket.h.

rp::net::StreamSocket::StreamSocket ( )
inlineprotected

Definition at line 128 of file socket.h.

Member Function Documentation

virtual StreamSocket* rp::net::StreamSocket::accept ( SocketAddress pairAddress = NULL)
pure virtual
virtual u_result rp::net::StreamSocket::connect ( const SocketAddress pairAddress)
pure virtual
StreamSocket * rp::net::StreamSocket::CreateSocket ( SocketBase::socket_family_t  family = SOCKET_FAMILY_INET)
static

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

virtual u_result rp::net::StreamSocket::enableKeepAlive ( bool  enable = true)
pure virtual
virtual u_result rp::net::StreamSocket::enableNoDelay ( bool  enable = true)
pure virtual
virtual u_result rp::net::StreamSocket::getPeerAddress ( SocketAddress )
pure virtual
virtual u_result rp::net::StreamSocket::listen ( int  backlog = MAX_BACKLOG)
pure virtual
virtual u_result rp::net::StreamSocket::recv ( void *  buf,
size_t  len,
size_t &  recv_len 
)
pure virtual
virtual u_result rp::net::StreamSocket::send ( const void *  buffer,
size_t  len 
)
pure virtual
virtual u_result rp::net::StreamSocket::shutdown ( socket_direction_mask  mask)
pure virtual
virtual u_result rp::net::StreamSocket::waitforIncomingConnection ( _u32  timeout = DEFAULT_SOCKET_TIMEOUT)
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