|
uuu
uuu (Universal Update Utility), mfgtools 3.0
|
#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 |
|
default |
| HttpStream::~HttpStream | ( | ) |
| int HttpStream::HttpDownload | ( | char * | buff, |
| size_t | sz ) |
| size_t HttpStream::HttpGetFileSize | ( | ) |
| int HttpStream::HttpGetHeader | ( | std::string | host, |
| std::string | path, | ||
| int | port = 80, | ||
| bool | ishttps = false ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |