Initial commit

This commit is contained in:
2025-04-21 19:58:25 +09:00
commit c81197054d
14 changed files with 246 additions and 0 deletions

0
include/Common.hpp Normal file
View File

16
include/Socket/Error.hpp Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#ifdef _WIN32
#include <winsock2.h>
#elif __linux__
#include <errno.h>
#else
#error "이 플랫폼은 지원되지 않습니다."
#endif
#include <gsl/gsl>
namespace Chattr::error {
void critical(gsl::czstring msg);
void error(gsl::czstring msg);
}

View File

@@ -0,0 +1,18 @@
#pragma once
#ifdef _WIN32
#elif __linux__
#else
#error "이 플랫폼은 지원되지 않습니다."
#endif
namespace Chattr {
struct Socket_Init {
Socket_Init();
~Socket_Init();
};
}