윈도우용 코드 완성
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user