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)
28 return m_windows.at(ID);
30 catch(const std::exception& e) {
35 void CClient::SetWindow(int ID, CWindow* window)
37 _SysDebug("SetWindow(ID=%i,window=%p)", ID, window);
41 m_windows[ID] = window;
44 void CClient::HandleMessage(CDeserialiser& message)
47 IPC::HandleMessage(*this, message);
48 if( !message.IsConsumed() )
50 _SysDebug("NOTICE - CClient::HandleMessage - Trailing data in message");
53 catch( const ::std::exception& e )
55 _SysDebug("ERROR - Exception while processing message from client: %s", e.what());
59 _SysDebug("ERROR - Unknown exception while processing message from client");