1er commit

This commit is contained in:
2021-08-21 10:14:47 +02:00
commit a99ecf7c2d
99 changed files with 66605 additions and 0 deletions

32
include/network/Network.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef NETWORK_NETWORK_H_
#define NETWORK_NETWORK_H_
#ifdef _WIN32
#include <ws2tcpip.h>
#pragma comment(lib, "ws2_32.lib")
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#endif
#include "network/Socket.h"
#include "network/IPAddress.h"
#include "network/UDPSocket.h"
#include "network/TCPSocket.h"
namespace td {
namespace network {
class Dns {
public:
static IPAddresses Resolve(const std::string& host);
};
} // ns network
} // ns td
#endif