You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
735 B
C++
24 lines
735 B
C++
#include <string>
|
|
#include <vector>
|
|
|
|
#include <curl/curl.h>
|
|
|
|
#include <unistd.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <net/if.h>
|
|
#include <bits/ioctl.h>
|
|
#include <json/json.h>
|
|
|
|
#include <android/multinetwork.h>
|
|
#include "LogThread.h"
|
|
|
|
#ifndef __HTTP_CLIENT__
|
|
#define __HTTP_CLIENT__
|
|
|
|
|
|
bool setIPAddress(const char *if_name, const char *ip_addr, const char *net_mask, const char *gateway_addr);
|
|
int DoGetRequest(const char* url, int authType, const char* userName, const char* password, net_handle_t netHandle, std::vector<uint8_t>& data);
|
|
int DoPutRequest(const char* url, int authType, const char* userName, const char* password, net_handle_t netHandle, const char* contents, char* data);
|
|
|
|
#endif // __HTTP_CLIENT__
|