일단 bind까지 구현 완료료

This commit is contained in:
2025-04-21 23:16:30 +09:00
parent 7f53703f60
commit 819bd5362e
6 changed files with 94 additions and 8 deletions

View File

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

View File

@@ -8,10 +8,12 @@ public:
Socket_Init(std::int32_t domain, std::int32_t type, std::int32_t protocol);
~Socket_Init();
operator SOCKET() const;
void bind(int __fd, const sockaddr *__addr, socklen_t __len);
Socket_Init(const Socket_Init&) = delete;
Socket_Init& operator=(const Socket_Init&) = delete;
operator SOCKET() const;
private:
bool valid_ = false;
SOCKET sock_ = INVALID_SOCKET;