Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
780 B
C++
30 lines
780 B
C++
#ifndef _GM_NETWORK_CREATE_POLICY_
|
|
#define _GM_NETWORK_CREATE_POLICY_
|
|
|
|
#include <Network/Session/SessionPolicy.h>
|
|
#include <Network/Winsock/SocketFactory.h>
|
|
#include <Network/Dispatch/Dispatch.h>
|
|
#include <Network/Dispatch/PoolDispatchFactory.h>
|
|
#include <Network/IOCP/Overlapped.h>
|
|
#include <Stream/Buffer/BufferFactory.h>
|
|
|
|
|
|
namespace SessionPolicy
|
|
{
|
|
template<typename DispatchType>
|
|
CSessionPolicy* CreateTCPPolicy()
|
|
{
|
|
return CSessionPolicy::Create<CTCPFactory, CPoolBufferFactory,
|
|
CPoolDispatchFactory<DispatchType>, CStreamOverlappedFactory>();
|
|
}
|
|
|
|
template<typename DispatchType>
|
|
CSessionPolicy* CreateUDPPolicy()
|
|
{
|
|
return CSessionPolicy::Create<CUDPFactory, CPoolBufferFactory,
|
|
CPoolDispatchFactory<DispatchType>, CDatagramOverlappedFactory>();
|
|
}
|
|
}
|
|
|
|
|
|
#endif |