
#ifndef _GAMENETINTERFACE_H_
#define _GAMENETINTERFACE_H_

#include "tnl.h"
#include "tnlNetBase.h"
#include "tnlGhostConnection.h"
#include "tnlNetInterface.h"
#include "tnlNetObject.h"
#include "tnlLog.h"
#include "tnlRPC.h"
#include "tnlString.h"
#include "tnlAsymmetricKey.h"

using namespace TNL;

namespace DinastyOnline {
	namespace Network {
		class GameWorld;
	
		class GameNetInterface : public TNL::NetInterface {
			typedef TNL::NetInterface Parent;
	
		public:
	
			GameWorld *world;   ///< The game object associated with this network interface.
	
			GameNetInterface(GameWorld *theWorld, const TNL::Address &bindAddress);
	
			/// Checks for incoming packets and processing connections.
			void idle();
		};
	}
}

#endif
