restructure project
This commit is contained in:
31
include/td/network/Network.h
Normal file
31
include/td/network/Network.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#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 "td/network/Socket.h"
|
||||
#include "td/network/IPAddress.h"
|
||||
#include "td/network/UDPSocket.h"
|
||||
#include "td/network/TCPSocket.h"
|
||||
|
||||
namespace td {
|
||||
namespace network {
|
||||
|
||||
class Dns {
|
||||
public:
|
||||
static IPAddresses Resolve(const std::string& host);
|
||||
};
|
||||
|
||||
} // ns network
|
||||
} // ns td
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user