자세 조정
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#elif __linux__
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <errno.h>
|
||||
#define SOCKET std::int32_t
|
||||
#define INVALID_SOCKET -1
|
||||
#else
|
||||
#error "<EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>."
|
||||
#error "이 플랫폼은 지원되지 않습니다."
|
||||
#endif
|
||||
|
||||
#include <gsl/gsl>
|
||||
Reference in New Issue
Block a user