rcpp_framework/libs/brynet/net/port/Win.hpp

25 lines
389 B
C++
Raw Normal View History

2020-11-24 15:41:18 +01:00
#pragma once
#include <brynet/net/SocketLibTypes.hpp>
#ifdef BRYNET_PLATFORM_WINDOWS
2021-05-14 17:16:45 +02:00
class Win {
2021-04-30 16:10:14 +02:00
public:
2021-05-14 17:16:45 +02:00
enum class OverlappedType {
OverlappedNone = 0,
OverlappedRecv,
OverlappedSend,
};
2020-11-24 15:41:18 +01:00
2021-05-14 17:16:45 +02:00
struct OverlappedExt {
OVERLAPPED base;
const OverlappedType OP;
2020-11-24 15:41:18 +01:00
2021-05-14 17:16:45 +02:00
OverlappedExt(OverlappedType op) BRYNET_NOEXCEPT : OP(op) {
memset(&base, 0, sizeof(base));
}
};
2021-04-30 16:10:14 +02:00
};
2020-11-24 15:41:18 +01:00
#endif