Darknet/YOLO v3.0-88-gdee7eef
Object Detection Framework
 
Loading...
Searching...
No Matches
httplib::SocketStream Class Reference

#include "httplib.hpp"

Inheritance diagram for httplib::SocketStream:
Collaboration diagram for httplib::SocketStream:

Public Member Functions

 SocketStream (socket_t sock, time_t read_timeout_sec, time_t read_timeout_usec)
 
 ~SocketStream () override
 
std::string get_remote_addr () const override
 
int read (char *ptr, size_t size) override
 
int write (const char *ptr) override
 
int write (const char *ptr, size_t size) override
 
int write (const std::string &s) override
 
template<typename... Args>
int write_format (const char *fmt, const Args &... args)
 

Private Attributes

time_t read_timeout_sec_
 
time_t read_timeout_usec_
 
socket_t sock_
 

Constructor & Destructor Documentation

◆ SocketStream()

httplib::SocketStream::SocketStream ( socket_t  sock,
time_t  read_timeout_sec,
time_t  read_timeout_usec 
)
inline

◆ ~SocketStream()

httplib::SocketStream::~SocketStream ( )
inlineoverride

Member Function Documentation

◆ get_remote_addr()

std::string httplib::SocketStream::get_remote_addr ( ) const
inlineoverridevirtual

Implements httplib::Stream.

Here is the call graph for this function:

◆ read()

int httplib::SocketStream::read ( char *  ptr,
size_t  size 
)
inlineoverridevirtual

Implements httplib::Stream.

Here is the call graph for this function:

◆ write() [1/3]

int httplib::SocketStream::write ( const char *  ptr)
inlineoverridevirtual

Implements httplib::Stream.

Here is the call graph for this function:

◆ write() [2/3]

int httplib::SocketStream::write ( const char *  ptr,
size_t  size 
)
inlineoverridevirtual

Implements httplib::Stream.

Here is the caller graph for this function:

◆ write() [3/3]

int httplib::SocketStream::write ( const std::string &  s)
inlineoverridevirtual

Implements httplib::Stream.

Here is the call graph for this function:

◆ write_format()

template<typename... Args>
int httplib::Stream::write_format ( const char *  fmt,
const Args &...  args 
)
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ read_timeout_sec_

time_t httplib::SocketStream::read_timeout_sec_
private

◆ read_timeout_usec_

time_t httplib::SocketStream::read_timeout_usec_
private

◆ sock_

socket_t httplib::SocketStream::sock_
private

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