mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
31 lines
604 B
C++
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
|
|||
|
|
|||
|
} } }
|