#include <httplib.h>
|
| SocketStream (socket_t sock, time_t read_timeout_sec, time_t read_timeout_usec, time_t write_timeout_sec, time_t write_timeout_usec) |
|
| ~SocketStream () override |
|
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 |
|
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) |
|
Definition at line 3231 of file httplib.h.
◆ SocketStream()
httplib::detail::SocketStream::SocketStream |
( |
socket_t |
sock, |
|
|
time_t |
read_timeout_sec, |
|
|
time_t |
read_timeout_usec, |
|
|
time_t |
write_timeout_sec, |
|
|
time_t |
write_timeout_usec |
|
) |
| |
|
inline |
◆ ~SocketStream()
httplib::detail::SocketStream::~SocketStream |
( |
| ) |
|
|
inlineoverridedefault |
◆ get_local_ip_and_port()
void httplib::detail::SocketStream::get_local_ip_and_port |
( |
std::string & |
ip, |
|
|
int & |
port |
|
) |
| const |
|
inlineoverridevirtual |
◆ get_remote_ip_and_port()
void httplib::detail::SocketStream::get_remote_ip_and_port |
( |
std::string & |
ip, |
|
|
int & |
port |
|
) |
| const |
|
inlineoverridevirtual |
◆ is_readable()
bool httplib::detail::SocketStream::is_readable |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ is_writable()
bool httplib::detail::SocketStream::is_writable |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ read()
ssize_t httplib::detail::SocketStream::read |
( |
char * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
◆ socket()
socket_t httplib::detail::SocketStream::socket |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ write()
ssize_t httplib::detail::SocketStream::write |
( |
const char * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: