uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
HttpStream Class Reference

#include <http.h>

Public Member Functions

 HttpStream ()
 
int HttpGetHeader (std::string host, std::string path, int port=80, bool ishttps=false)
 
size_t HttpGetFileSize ()
 
int HttpDownload (char *buff, size_t sz)
 
 ~HttpStream ()
 

Private Member Functions

int parser_response (std::string rep)
 
int RecvPacket (char *buff, size_t sz)
 
int SendPacket (char *buff, size_t sz)
 

Private Attributes

std::vector< uint8_t > m_buff
 
int m_socket = -1
 
std::map< std::string, std::string > m_response
 
size_t m_data_start
 
void * m_ssl = nullptr
 

Constructor & Destructor Documentation

◆ HttpStream()

HttpStream::HttpStream ( )

◆ ~HttpStream()

HttpStream::~HttpStream ( )

Member Function Documentation

◆ HttpDownload()

int HttpStream::HttpDownload ( char * buff,
size_t sz )

◆ HttpGetFileSize()

size_t HttpStream::HttpGetFileSize ( )

◆ HttpGetHeader()

int HttpStream::HttpGetHeader ( std::string host,
std::string path,
int port = 80,
bool ishttps = false )

◆ parser_response()

int HttpStream::parser_response ( std::string rep)
private

◆ RecvPacket()

int HttpStream::RecvPacket ( char * buff,
size_t sz )
private

◆ SendPacket()

int HttpStream::SendPacket ( char * buff,
size_t sz )
private

Member Data Documentation

◆ m_buff

std::vector<uint8_t> HttpStream::m_buff
private

◆ m_data_start

size_t HttpStream::m_data_start
private

◆ m_response

std::map<std::string, std::string> HttpStream::m_response
private

◆ m_socket

int HttpStream::m_socket = -1
private

◆ m_ssl

void* HttpStream::m_ssl = nullptr
private

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