윈도우용 코드 완성

This commit is contained in:
2025-04-21 21:52:33 +09:00
parent c81197054d
commit a464fdfe82
11 changed files with 111 additions and 59 deletions

View File

@@ -1,18 +1,19 @@
#pragma once
#ifdef _WIN32
#elif __linux__
#else
#error "이 플랫폼은 지원되지 않습니다."
#endif
#include "precomp.hpp"
namespace Chattr {
struct Socket_Init {
Socket_Init();
public:
Socket_Init(std::int32_t domain, std::int32_t type, std::int32_t protocol);
~Socket_Init();
Socket_Init(const Socket_Init&) = delete;
Socket_Init& operator=(const Socket_Init&) = delete;
SOCKET get() const;
private:
SOCKET sock_;
};
}