2020-08-01 04:38:20 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
struct bufferevent;
|
2020-08-02 00:35:54 +01:00
|
|
|
struct sockaddr;
|
2020-08-02 00:53:56 +01:00
|
|
|
struct evconnlistener;
|
2020-08-01 04:38:20 +01:00
|
|
|
|
|
|
|
namespace Feather::Network
|
|
|
|
{
|
|
|
|
#ifdef _WIN32
|
|
|
|
using SocketHandle = intptr_t;
|
|
|
|
#else
|
|
|
|
using SocketHandle = int;
|
|
|
|
#endif
|
|
|
|
|
2020-08-02 00:35:54 +01:00
|
|
|
struct SocketAddress;
|
|
|
|
|
2020-08-01 04:38:20 +01:00
|
|
|
class IListenerInterface;
|
|
|
|
class TCPListener;
|
|
|
|
class TCPSocket;
|
|
|
|
class TCPClient;
|
|
|
|
|
|
|
|
using TCPClientHandle = std::unique_ptr<TCPClient>;
|
|
|
|
}
|