gwnavruntime/visualdebug/internal/socketdispatcher.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_SocketDispatcher_H
10 #define Navigation_SocketDispatcher_H
14 #ifdef KY_ENABLE_SOCKETS
23 enum SocketDispatchMode
25 SocketDispatch_NetworkOnly = 0,
26 SocketDispatch_SendToFile = 1,
27 SocketDispatch_ReceiveFromFile = 2,
30 class SocketDispatcherFactory :
public Net::AMP::SocketImplFactory
36 SocketDispatcherFactory(SocketDispatchMode mode, File* file,
KyInt32 fileBytesLimit)
39 , m_fileBytesLimit(fileBytesLimit)
42 KY_ASSERT( m_mode == SocketDispatch_NetworkOnly || m_file !=
KY_NULL );
47 KyInt32 capLimit = (2047-10) * 1024 * 1024;
48 if (m_fileBytesLimit <= 0 || m_fileBytesLimit >= capLimit)
49 m_fileBytesLimit = capLimit;
52 virtual ~SocketDispatcherFactory() {}
54 virtual Net::AMP::SocketInterface* Create();
55 virtual void Destroy(Net::AMP::SocketInterface* socketImpl);
58 SocketDispatchMode m_mode;
67 #endif // Navigation_SocketDispatcher_H
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137