diff --git a/TODO b/TODO index 2bd9b76..376cf97 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,5 @@ initialization code for other operating systems - currently VoidNet only supports windows -initialization code for tcp client for other operating systems - " +initialization code for tcp client and tcp server for other operating systems handle SendNetworkMessage errors for windows handle ReceiveDataArray errors for windows diff --git a/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj b/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj index 19c58bf..c11f398 100644 --- a/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj +++ b/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj @@ -26,6 +26,7 @@ + @@ -34,11 +35,19 @@ - + + true + - + + true + + + + true + diff --git a/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj.filters b/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj.filters index 4ad2aac..4c911af 100644 --- a/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj.filters +++ b/VoidNetVS/VoidNetVS/VoidNetVS.vcxproj.filters @@ -42,14 +42,14 @@ include + + include + src - - src - src @@ -71,6 +71,15 @@ src + + src + + + src + + + src + diff --git a/include/TcpServer.hpp b/include/TcpServer.hpp new file mode 100644 index 0000000..5209748 --- /dev/null +++ b/include/TcpServer.hpp @@ -0,0 +1,8 @@ +#ifndef TCP_SERVER_HPP +#define TCP_SERVER_HPP + +#ifdef _MSC_VER +#pragma once +#endif + +#endif diff --git a/src/TcpServer.cpp b/src/TcpServer.cpp new file mode 100644 index 0000000..a74d7bf --- /dev/null +++ b/src/TcpServer.cpp @@ -0,0 +1,3 @@ +#ifdef _MSC_VER +#include "TcpServerWindows.cpp" +#endif \ No newline at end of file diff --git a/src/TcpServerWindows.cpp b/src/TcpServerWindows.cpp new file mode 100644 index 0000000..261319a --- /dev/null +++ b/src/TcpServerWindows.cpp @@ -0,0 +1 @@ +#include "TcpClient.hpp" \ No newline at end of file