Add socket library

This commit is contained in:
2019-12-25 14:42:58 +01:00
parent 78dd5366a0
commit fc65d4b146
38 changed files with 186 additions and 4 deletions

View File

@@ -1,12 +1,14 @@
#include <iostream>
#include "Log.h"
#include "Result.h"
#include "ipVersion.h"
void SocketLibrary::Log::Print(std::string message)
{
std::cout << message << std::endl;
std::cout << "[LOG] " << message << std::endl;
}
void SocketLibrary::Log::PrintError(std::string message, int error)
{
std::cerr << "[Error Code: " << error << "] "<< message << std::endl;
std::cerr << "[ERROR] " << "[Error Code: " << error << "] "<< message << std::endl;
}