uHTTP for C++
uHTTP::HTTPSocket Class Reference

#include <HTTPSocket.h>

Public Member Functions

 HTTPSocket (uHTTP::Socket *socket)
 
 HTTPSocket (HTTPSocket *socket)
 
 ~HTTPSocket ()
 
void setSocket (uHTTP::Socket *socket)
 
uHTTP::SocketgetSocket ()
 
const char * getLocalAddress ()
 
int getLocalPort ()
 
bool open ()
 
bool close ()
 
bool post (HTTPResponse *httpRes, size_t contentOffset, size_t contentLength, bool isOnlyHeader, bool isChunked)
 
bool post (HTTPResponse *httpRes)
 
bool post (const std::string &content)
 
bool post (const char c)
 

Private Member Functions

bool post (HTTPResponse *httpRes, const std::string &content, size_t contentOffset, size_t contentLength, bool isOnlyHeader, bool isChunked)
 
bool post (HTTPResponse *httpRes, uHTTP::InputStream *in, size_t contentOffset, size_t contentLength, bool isOnlyHeader, bool isChunked)
 

Private Attributes

uHTTP::Socketsocket
 

Constructor & Destructor Documentation

◆ HTTPSocket() [1/2]

uHTTP::HTTPSocket::HTTPSocket ( uHTTP::Socket * socket)

◆ HTTPSocket() [2/2]

uHTTP::HTTPSocket::HTTPSocket ( HTTPSocket * socket)

◆ ~HTTPSocket()

uHTTP::HTTPSocket::~HTTPSocket ( )

Member Function Documentation

◆ close()

bool uHTTP::HTTPSocket::close ( )

◆ getLocalAddress()

const char * uHTTP::HTTPSocket::getLocalAddress ( )
inline

◆ getLocalPort()

int uHTTP::HTTPSocket::getLocalPort ( )
inline

◆ getSocket()

uHTTP::Socket * uHTTP::HTTPSocket::getSocket ( )
inline

◆ open()

bool uHTTP::HTTPSocket::open ( )

◆ post() [1/6]

bool uHTTP::HTTPSocket::post ( const char c)

◆ post() [2/6]

bool uHTTP::HTTPSocket::post ( const std::string & content)

◆ post() [3/6]

bool uHTTP::HTTPSocket::post ( HTTPResponse * httpRes)

◆ post() [4/6]

bool uHTTP::HTTPSocket::post ( HTTPResponse * httpRes,
const std::string & content,
size_t contentOffset,
size_t contentLength,
bool isOnlyHeader,
bool isChunked )
private

◆ post() [5/6]

bool uHTTP::HTTPSocket::post ( HTTPResponse * httpRes,
size_t contentOffset,
size_t contentLength,
bool isOnlyHeader,
bool isChunked )

◆ post() [6/6]

bool uHTTP::HTTPSocket::post ( HTTPResponse * httpRes,
uHTTP::InputStream * in,
size_t contentOffset,
size_t contentLength,
bool isOnlyHeader,
bool isChunked )
private

◆ setSocket()

void uHTTP::HTTPSocket::setSocket ( uHTTP::Socket * socket)
inline

Field Documentation

◆ socket

uHTTP::Socket* uHTTP::HTTPSocket::socket
private

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