rcpp_framework/libs/brynet/net/port/Win.hpp
2020-11-24 15:41:18 +01:00

31 lines
604 B
C++

#pragma once
#include <brynet/net/SocketLibTypes.hpp>
namespace brynet { namespace net { namespace port {
#ifdef BRYNET_PLATFORM_WINDOWS
class Win
{
public:
enum class OverlappedType
{
OverlappedNone = 0,
OverlappedRecv,
OverlappedSend,
};
struct OverlappedExt
{
OVERLAPPED base;
const OverlappedType OP;
OverlappedExt(OverlappedType op) BRYNET_NOEXCEPT : OP(op)
{
memset(&base, 0, sizeof(base));
}
};
};
#endif
} } }