대입 연산자는 윈도우에서 뭔지 모를 버그가 있으니 그냥 이렇게 하는걸로.

This commit is contained in:
2025-04-21 22:48:53 +09:00
parent 695abbbf00
commit 7f53703f60
4 changed files with 4 additions and 11 deletions

View File

@@ -5,18 +5,16 @@ namespace Chattr {
struct Socket_Init {
public:
Socket_Init() {}
Socket_Init(std::int32_t domain, std::int32_t type, std::int32_t protocol);
~Socket_Init();
Socket_Init(const SOCKET& socket);
Socket_Init(const Socket_Init&) = delete;
Socket_Init& operator=(const Socket_Init&) = delete;
operator SOCKET() const;
private:
bool valid_ = false;
SOCKET sock_;
SOCKET sock_ = INVALID_SOCKET;
};
}