Initial commit
This commit is contained in:
16
include/Socket/Error.hpp
Normal file
16
include/Socket/Error.hpp
Normal 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);
|
||||
}
|
||||
18
include/Socket/Socket_Init.hpp
Normal file
18
include/Socket/Socket_Init.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#elif __linux__
|
||||
|
||||
#else
|
||||
#error "이 플랫폼은 지원되지 않습니다."
|
||||
#endif
|
||||
|
||||
namespace Chattr {
|
||||
|
||||
struct Socket_Init {
|
||||
Socket_Init();
|
||||
~Socket_Init();
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user