/*
**  ClanLib SDK
**  Copyright (c) 1997-2020 The ClanLib Team
**
**  This software is provided 'as-is', without any express or implied
**  warranty.  In no event will the authors be held liable for any damages
**  arising from the use of this software.
**
**  Permission is granted to anyone to use this software for any purpose,
**  including commercial applications, and to alter it and redistribute it
**  freely, subject to the following restrictions:
**
**  1. The origin of this software must not be misrepresented; you must not
**     claim that you wrote the original software. If you use this software
**     in a product, an acknowledgment in the product documentation would be
**     appreciated but is not required.
**  2. Altered source versions must be plainly marked as such, and must not be
**     misrepresented as being the original software.
**  3. This notice may not be removed or altered from any source distribution.
**
**  Note: Some of the libraries ClanLib may link to may have additional
**  requirements or restrictions.
**
**  File Author(s):
**
**    Magnus Norddahl
*/

/// \brief <p>Enables network communication.  Includes low-level socket access as well
/// \brief as higher-level network objects.</p>
//! Global=Network

#pragma once

#ifdef WIN32
#pragma warning( disable : 4786)
#endif

#ifdef __cplusplus_cli
#pragma managed(push, off)
#endif

#include "Network/Socket/socket_name.h"
#include "Network/Socket/network_condition_variable.h"
#include "Network/Socket/tcp_connection.h"
#include "Network/Socket/tcp_listen.h"
#include "Network/Socket/udp_socket.h"

#include "Network/NetGame/client.h"
#include "Network/NetGame/connection.h"
#include "Network/NetGame/event.h"
#include "Network/NetGame/event_dispatcher.h"
#include "Network/NetGame/event_value.h"
#include "Network/NetGame/server.h"

#ifdef __cplusplus_cli
#pragma managed(pop)
#endif

#if defined(_MSC_VER)
	#if !defined(_MT)
		#error Your application is set to link with the single-threaded version of the run-time library. Go to project settings, in the C++ section, and change it to multi-threaded.
	#endif
	#if !defined(_DEBUG)
		#if defined(DLL)
			#pragma comment(lib, "clanNetwork-dll.lib")
		#elif defined(_DLL)
			#pragma comment(lib, "clanNetwork-static-mtdll.lib")
		#else
			#pragma comment(lib, "clanNetwork-static-mt.lib")
		#endif
	#else
		#if defined(DLL)
			#pragma comment(lib, "clanNetwork-dll-debug.lib")
		#elif defined(_DLL)
			#pragma comment(lib, "clanNetwork-static-mtdll-debug.lib")
		#else
			#pragma comment(lib, "clanNetwork-static-mt-debug.lib")
		#endif
	#endif
	#pragma comment(lib, "ws2_32.lib")
	#pragma comment(lib, "iphlpapi.lib")
#endif
