mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-27 12:32:19 +00:00
23 lines
641 B
C++
23 lines
641 B
C++
#ifndef CONNECTOR_H
|
|
#define CONNECTOR_H
|
|
|
|
#include "STh.h"
|
|
#include "BruteUtils.h"
|
|
|
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
|
|
#include <iphlpapi.h>
|
|
#include <icmpapi.h>
|
|
#pragma comment(lib, "iphlpapi.lib")
|
|
#pragma comment(lib,"curllib.lib")
|
|
#endif
|
|
class Connector {
|
|
|
|
public:
|
|
static int nConnect(const char* ip, const int port, std::string *buffer,
|
|
const char *postData = NULL,
|
|
const std::vector<std::string> *customHeaders = NULL,
|
|
const std::string *lpString = NULL);
|
|
static int _ConnectToPort(char *ip, int port);
|
|
};
|
|
#endif // CONNECTOR_H
|