From d5bac377b3e6d4ca59d229ac02aa9d13c99c10aa Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:32:16 +0800 Subject: [PATCH] [saco] Add CHttpClient stubs --- saco/httpclient.cpp | 75 +++++++++++++++++++++++++++++++++++++++++++++ saco/httpclient.h | 27 ++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 saco/httpclient.cpp create mode 100644 saco/httpclient.h diff --git a/saco/httpclient.cpp b/saco/httpclient.cpp new file mode 100644 index 0000000..d64083f --- /dev/null +++ b/saco/httpclient.cpp @@ -0,0 +1,75 @@ + +#include +#include +#include "httpclient.h" + +//---------------------------------------------------- + +CHttpClient::CHttpClient() +{ + // TODO: CHttpClient::CHttpClient() 100022E0 +} + +//---------------------------------------------------- + +CHttpClient::~CHttpClient() +{ + // TODO: CHttpClient::~CHttpClient() 10002340 +} + +//---------------------------------------------------- + +int CHttpClient::ProcessURL(int a2, char *a3, char *a4, char *a5) +{ + // TODO: CHttpClient::ProcessURL 10002C40 + + printf("CHttpClient::ProcessURL %s\n", a3); // Thanks Kalcor! + + return 1; +} + +void CHttpClient::InitRequest(int a2, char *a3, char *a4, char *a5) +{ + // TODO: CHttpClient::InitRequest 100024B0 +} + +void CHttpClient::Process() +{ + // TODO: CHttpClient::Process() 10002A60 +} + +char CHttpClient::Connect(char *name, u_short hostshort) +{ + // TODO: CHttpClient::Connect 100029A0 + return 0; +} + +char CHttpClient::HandleEntity() +{ + // TODO: CHttpClient::HandleEntity() 10002680 + return 0; +} + +int CHttpClient::Recv(char *buf, int len) +{ + // TODO: CHttpClient::Recv 10002490 + return 0; +} + +char CHttpClient::Send(char *buf) +{ + // TODO: CHttpClient::Send 10002450 + return 0; +} + +int CHttpClient::CloseConnection() +{ + // TODO: CHttpClient::CloseConnection() 10002440 + return 0; +} + +char CHttpClient::GetHeaderValue(char *a2, char *a3, signed int a4) +{ + // TODO: CHttpClient::GetHeaderValue 100023B0 + return 0; +} diff --git a/saco/httpclient.h b/saco/httpclient.h new file mode 100644 index 0000000..54319eb --- /dev/null +++ b/saco/httpclient.h @@ -0,0 +1,27 @@ + +//---------------------------------------------------- + +class CHttpClient +{ +private: + int field_0; + char _gap4[22]; + char _gap1A[24]; + int field_32; + +public: + + CHttpClient(); + ~CHttpClient(); + int ProcessURL(int a2, char *a3, char *a4, char *a5); + void InitRequest(int a2, char *a3, char *a4, char *a5); + void Process(); + char Connect(char *name, u_short hostshort); + char HandleEntity(); + int Recv(char *buf, int len); + char Send(char *buf); + int CloseConnection(); + char GetHeaderValue(char *a2, char *a3, signed int a4); +}; + +//----------------------------------------------------