Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
rp::net::StreamSocket Class Reference

#include <socket.h>

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

List of all members.

Public Types

enum  { MAX_BACKLOG = 128 }

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

Static Public Member Functions

static StreamSocketCreateSocket (socket_family_t family=SOCKET_FAMILY_INET)

Protected Member Functions

 StreamSocket ()
virtual ~StreamSocket ()

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 ( ) [inline, protected, virtual]

Definition at line 127 of file socket.h.

rp::net::StreamSocket::StreamSocket ( ) [inline, protected]

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]

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::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]

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


rplidar_ros
Author(s):
autogenerated on Mon Mar 18 2019 02:34:23