From 5bf0aebf0f38270df278ebdf55ca6b7c4233af5a Mon Sep 17 00:00:00 2001 From: xX-TheDoctor-Xx Date: Thu, 21 Jul 2016 10:15:28 +0100 Subject: [PATCH] Added TcpServer header, source file and added file for tcp server windows implementation Excluded OS specific files from build --- TODO | 2 +- VoidNetVS/VoidNetVS/VoidNetVS.vcxproj | 13 +++++++++++-- VoidNetVS/VoidNetVS/VoidNetVS.vcxproj.filters | 15 ++++++++++++--- include/TcpServer.hpp | 8 ++++++++ src/TcpServer.cpp | 3 +++ src/TcpServerWindows.cpp | 1 + 6 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 include/TcpServer.hpp create mode 100644 src/TcpServer.cpp create mode 100644 src/TcpServerWindows.cpp 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