mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Add CHttpClient stubs
This commit is contained in:
parent
3ee88bc77f
commit
d5bac377b3
75
saco/httpclient.cpp
Normal file
75
saco/httpclient.cpp
Normal file
@ -0,0 +1,75 @@
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#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;
|
||||
}
|
27
saco/httpclient.h
Normal file
27
saco/httpclient.h
Normal file
@ -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);
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
Loading…
Reference in New Issue
Block a user