Files
2023-01-02 13:05:43 +01:00

32 lines
509 B
C++

#ifndef NETWORK_NETWORK_H_
#define NETWORK_NETWORK_H_
#ifdef _WIN32
#include <ws2tcpip.h>
#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