Stream Class Referenceabstract

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

+ Inheritance diagram for Stream:

Public Member Functions

virtual void get_local_ip_and_port (std::string &ip, int &port) const =0
 
virtual void get_remote_ip_and_port (std::string &ip, int &port) const =0
 
virtual bool is_readable () const =0
 
virtual bool is_writable () const =0
 
virtual ssize_t read (char *ptr, size_t size)=0
 
virtual socket_t socket () const =0
 
ssize_t write (const char *ptr)
 
virtual ssize_t write (const char *ptr, size_t size)=0
 
ssize_t write (const std::string &s)
 
virtual ~Stream ()=default
 

Detailed Description

Definition at line 724 of file httplib.h.

Constructor & Destructor Documentation

◆ ~Stream()

virtual ~Stream ( )
virtualdefault

Member Function Documentation

◆ get_local_ip_and_port()

virtual void get_local_ip_and_port ( std::string &  ip,
int &  port 
) const
pure virtual

Implemented in SocketStream, and BufferStream.

◆ get_remote_ip_and_port()

virtual void get_remote_ip_and_port ( std::string &  ip,
int &  port 
) const
pure virtual

Implemented in SocketStream, and BufferStream.

◆ is_readable()

virtual bool is_readable ( ) const
pure virtual

Implemented in SocketStream, and BufferStream.

◆ is_writable()

virtual bool is_writable ( ) const
pure virtual

Implemented in SocketStream, and BufferStream.

+ Here is the caller graph for this function:

◆ read()

virtual ssize_t read ( char *  ptr,
size_t  size 
)
pure virtual

Implemented in SocketStream, and BufferStream.

+ Here is the caller graph for this function:

◆ socket()

virtual socket_t socket ( ) const
pure virtual

Implemented in SocketStream, and BufferStream.

+ Here is the caller graph for this function:

◆ write() [1/3]

ssize_t write ( const char *  ptr)
inline

Definition at line 5854 of file httplib.h.

+ Here is the call graph for this function:

◆ write() [2/3]

virtual ssize_t write ( const char *  ptr,
size_t  size 
)
pure virtual

Implemented in SocketStream, and BufferStream.

+ Here is the caller graph for this function:

◆ write() [3/3]

ssize_t write ( const std::string &  s)
inline

Definition at line 5858 of file httplib.h.

+ Here is the call graph for this function:

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