자세 조정

This commit is contained in:
2025-04-21 22:22:50 +09:00
parent a464fdfe82
commit 695abbbf00
8 changed files with 72 additions and 40 deletions

View File

@@ -2,6 +2,6 @@
#include "precomp.hpp"
namespace Chattr::log {
void critical(gsl::czstring msg);
void error(gsl::czstring msg);
void critical(gsl::czstring msg, bool bShowDBGMessage);
void error(gsl::czstring msg, bool bShowDBGMessage);
}

View File

@@ -5,14 +5,17 @@ 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;
SOCKET get() const;
operator SOCKET() const;
private:
bool valid_ = false;
SOCKET sock_;
};