FeatherMC/src/network/TCPCommon.h

22 lines
348 B
C++

#pragma once
#include <cstdint>
#include <memory>
struct bufferevent;
namespace Feather::Network
{
#ifdef _WIN32
using SocketHandle = intptr_t;
#else
using SocketHandle = int;
#endif
class IListenerInterface;
class TCPListener;
class TCPSocket;
class TCPClient;
using TCPClientHandle = std::unique_ptr<TCPClient>;
}