#pragma once #include #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