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

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

Inheritance diagram for httplib::detail::SocketStream:
httplib::Stream

Public Member Functions

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

Constructor & Destructor Documentation

◆ 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

Definition at line 5942 of file httplib.h.

◆ ~SocketStream()

httplib::detail::SocketStream::~SocketStream ( )
inlineoverride

Definition at line 5953 of file httplib.h.

Member Function Documentation

◆ get_local_ip_and_port()

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

Implements httplib::Stream.

Definition at line 6044 of file httplib.h.

◆ get_remote_ip_and_port()

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

Implements httplib::Stream.

Definition at line 6039 of file httplib.h.

◆ is_readable()

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

Implements httplib::Stream.

Definition at line 5955 of file httplib.h.

◆ is_writable()

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

Implements httplib::Stream.

Definition at line 5960 of file httplib.h.

◆ read()

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

Implements httplib::Stream.

Definition at line 5966 of file httplib.h.

◆ socket()

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

Implements httplib::Stream.

Definition at line 6049 of file httplib.h.

◆ write()

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

Implements httplib::Stream.

Definition at line 6025 of file httplib.h.


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