7 #include "Networking.h"
9 #include "ITcpListener.h"
10 #include "CommandBuffer.h"
11 #include "CommandRegistry.h"
12 #include "CommandProcessor.h"
13 #include "CommandParser.h"
14 #include "CommandServer.h"
25 static const int DefaultPort = 12345;
37 , m_pRegistry(pRegistry)
39 , m_pTerminal(pTerminal)
40 , m_pProcessor(pProcessor)
41 , m_pTcpListener(pTcpListener)
42 , m_pCommandServer(pCommandServer)
44 Eegeo_ASSERT(pBuffer != NULL);
45 Eegeo_ASSERT(pRegistry != NULL);
46 Eegeo_ASSERT(pParser != NULL);
47 Eegeo_ASSERT(pTerminal != NULL);
48 Eegeo_ASSERT(pProcessor != NULL);
49 Eegeo_ASSERT(pTcpListener != NULL);
50 Eegeo_ASSERT(pCommandServer != NULL);
52 m_pTcpListener->StartListening(port);
57 Eegeo_DELETE m_pCommandServer;
58 Eegeo_DELETE m_pTcpListener;
59 Eegeo_DELETE m_pProcessor;
60 Eegeo_DELETE m_pTerminal;
61 Eegeo_DELETE m_pParser;
62 Eegeo_DELETE m_pRegistry;
63 Eegeo_DELETE m_pBuffer;
68 m_pTcpListener->Update();
69 while (!m_pBuffer->IsEmpty())
71 m_pProcessor->Update();