SocketStream Class Referencefinal

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

+ Inheritance diagram for SocketStream:

Public Member Functions

void get_local_ip_and_port (std::string &ip, int &port) const override
 
void get_remote_ip_and_port (std::string &ip, int &port) const override
 
bool is_readable () const override
 
bool is_writable () const override
 
ssize_t read (char *ptr, size_t size) override
 
socket_t socket () const override
 
 SocketStream (socket_t sock, time_t read_timeout_sec, time_t read_timeout_usec, time_t write_timeout_sec, time_t write_timeout_usec)
 
ssize_t write (const char *ptr, size_t size) override
 
 ~SocketStream () override
 
- Public Member Functions inherited from Stream
ssize_t write (const char *ptr)
 
ssize_t write (const std::string &s)
 
virtual ~Stream ()=default
 

Detailed Description

Definition at line 3229 of file httplib.h.

Constructor & Destructor Documentation

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

◆ ~SocketStream()

~SocketStream ( )
inlineoverridedefault

Member Function Documentation

◆ get_local_ip_and_port()

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

Implements Stream.

Definition at line 5947 of file httplib.h.

+ Here is the call graph for this function:

◆ get_remote_ip_and_port()

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

Implements Stream.

Definition at line 5942 of file httplib.h.

+ Here is the call graph for this function:

◆ is_readable()

bool is_readable ( ) const
inlineoverridevirtual

Implements Stream.

Definition at line 5876 of file httplib.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_writable()

bool is_writable ( ) const
inlineoverridevirtual

Implements Stream.

Definition at line 5880 of file httplib.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ssize_t read ( char *  ptr,
size_t  size 
)
inlineoverridevirtual

Implements Stream.

Definition at line 5885 of file httplib.h.

+ Here is the call graph for this function:

◆ socket()

socket_t socket ( ) const
inlineoverridevirtual

Implements Stream.

Definition at line 5952 of file httplib.h.

◆ write()

ssize_t write ( const char *  ptr,
size_t  size 
)
inlineoverridevirtual

Implements Stream.

Definition at line 5931 of file httplib.h.

+ Here is the call graph for this function:

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