3 * - By John Hodge (thePowersGang)
9 #include <IIPCChannel.hpp>
14 CClient::CClient(::AxWin::IIPCChannel& channel):
22 ::AxWin::IPC::DeregisterClient(*this);
25 CWindow* CClient::GetWindow(int ID)
27 _SysDebug("GetWindow(ID=%i)", ID);
29 return m_windows.at(ID);
31 catch(const std::exception& e) {
36 void CClient::SetWindow(int ID, CWindow* window)
38 _SysDebug("SetWindow(ID=%i,window=%p)", ID, window);
42 m_windows[ID] = window;
45 void CClient::HandleMessage(CDeserialiser& message)
48 IPC::HandleMessage(*this, message);
49 if( !message.IsConsumed() )
51 _SysDebug("NOTICE - CClient::HandleMessage - Trailing data in message");
54 catch( const ::std::exception& e )
56 _SysDebug("ERROR - Exception while processing message from client: %s", e.what());
60 _SysDebug("ERROR - Unknown exception while processing message from client");