Project Alice
Loading...
Searching...
No Matches
httplib::detail::BufferStream Class Referencefinal

#include <httplib.h>

Inheritance diagram for httplib::detail::BufferStream:
Collaboration diagram for httplib::detail::BufferStream:

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
 
virtual bool is_readable () const =0
 
virtual bool is_writable () const =0
 
virtual ssize_t read (char *ptr, size_t size)=0
 
virtual ssize_t write (const char *ptr, size_t size)=0
 
virtual void get_remote_ip_and_port (std::string &ip, int &port) const =0
 
virtual void get_local_ip_and_port (std::string &ip, int &port) const =0
 
virtual socket_t socket () const =0
 
ssize_t write (const char *ptr)
 
ssize_t write (const std::string &s)
 

Detailed Description

Definition at line 2364 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 5984 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 5979 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 5976 of file httplib.h.

◆ is_readable()

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

Implements httplib::Stream.

Definition at line 5957 of file httplib.h.

◆ is_writable()

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

Implements httplib::Stream.

Definition at line 5959 of file httplib.h.

◆ read()

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

Implements httplib::Stream.

Definition at line 5961 of file httplib.h.

◆ socket()

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

Implements httplib::Stream.

Definition at line 5982 of file httplib.h.

◆ write()

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

Implements httplib::Stream.

Definition at line 5971 of file httplib.h.


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