Project Alice
Loading...
Searching...
No Matches
httplib::Stream Class Referenceabstract

#include <httplib.h>

Inheritance diagram for httplib::Stream:

Public Member Functions

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 726 of file httplib.h.

Constructor & Destructor Documentation

◆ ~Stream()

virtual httplib::Stream::~Stream ( )
virtualdefault

Member Function Documentation

◆ get_local_ip_and_port()

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

◆ get_remote_ip_and_port()

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

◆ is_readable()

virtual bool httplib::Stream::is_readable ( ) const
pure virtual

◆ is_writable()

virtual bool httplib::Stream::is_writable ( ) const
pure virtual

Implemented in httplib::detail::BufferStream, and httplib::detail::SocketStream.

Here is the caller graph for this function:

◆ read()

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

Implemented in httplib::detail::BufferStream, and httplib::detail::SocketStream.

Here is the caller graph for this function:

◆ socket()

virtual socket_t httplib::Stream::socket ( ) const
pure virtual

Implemented in httplib::detail::BufferStream, and httplib::detail::SocketStream.

Here is the caller graph for this function:

◆ write() [1/3]

ssize_t httplib::Stream::write ( const char *  ptr)
inline

Definition at line 5856 of file httplib.h.

◆ write() [2/3]

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

Implemented in httplib::detail::BufferStream, and httplib::detail::SocketStream.

Here is the caller graph for this function:

◆ write() [3/3]

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

Definition at line 5860 of file httplib.h.


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