Goby3  3.1.5a
2024.05.23
httplib::detail::BufferStream Class Reference

#include <goby/util/thirdparty/cpp-httplib/httplib.h>

Inheritance diagram for httplib::detail::BufferStream:
httplib::Stream

Public Member Functions

 BufferStream ()=default
 
 ~BufferStream () override=default
 
bool is_readable () const override
 
bool is_writable () const override
 
ssize_t read (char *ptr, size_t size) override
 
ssize_t write (const char *ptr, size_t size) override
 
void get_remote_ip_and_port (std::string &ip, int &port) const override
 
void get_local_ip_and_port (std::string &ip, int &port) const override
 
socket_t socket () const override
 
const std::string & get_buffer () const
 
- Public Member Functions inherited from httplib::Stream
virtual ~Stream ()=default
 
template<typename... Args>
ssize_t write_format (const char *fmt, const Args &... args)
 
ssize_t write (const char *ptr)
 
ssize_t write (const std::string &s)
 

Detailed Description

Definition at line 1976 of file httplib.h.

Constructor & Destructor Documentation

◆ BufferStream()

httplib::detail::BufferStream::BufferStream ( )
default

◆ ~BufferStream()

httplib::detail::BufferStream::~BufferStream ( )
overridedefault

Member Function Documentation

◆ get_buffer()

const std::string & httplib::detail::BufferStream::get_buffer ( ) const
inline

Definition at line 6079 of file httplib.h.

◆ get_local_ip_and_port()

void httplib::detail::BufferStream::get_local_ip_and_port ( std::string &  ip,
int port 
) const
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6075 of file httplib.h.

◆ get_remote_ip_and_port()

void httplib::detail::BufferStream::get_remote_ip_and_port ( std::string &  ip,
int port 
) const
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6073 of file httplib.h.

◆ is_readable()

bool httplib::detail::BufferStream::is_readable ( ) const
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6052 of file httplib.h.

◆ is_writable()

bool httplib::detail::BufferStream::is_writable ( ) const
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6054 of file httplib.h.

◆ read()

ssize_t httplib::detail::BufferStream::read ( char ptr,
size_t  size 
)
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6056 of file httplib.h.

◆ socket()

socket_t httplib::detail::BufferStream::socket ( ) const
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6077 of file httplib.h.

◆ write()

ssize_t httplib::detail::BufferStream::write ( const char ptr,
size_t  size 
)
inlineoverridevirtual

Implements httplib::Stream.

Definition at line 6067 of file httplib.h.


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