5 * Created by Toshi Nagata on 12/10/10.
6 * Copyright 2010 Toshi Nagata. All rights reserved.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation version 2 of the License.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
18 // For compilers that support precompilation, includes "wx/wx.h".
19 #include "wx/wxprec.h"
21 #if defined(__WXMSW__)
25 #define MOLBY_IPC_TOPIC wxT("MOLBY_IPC_TOPIC")
27 extern wxString *gIPCServiceName;
29 class MyClientConnection: public wxConnection
32 virtual bool OnDisconnect();
35 class MyClient: public wxClient
41 wxConnectionBase *OnMakeConnection();
42 MyClientConnection *m_clientConnection;
45 class MyServerConnection: public wxConnection
48 virtual bool OnDisconnect();
49 virtual bool OnExecute(const wxString& topic, wxChar* data, int size, wxIPCFormat format);
52 class MyServer: public wxServer
58 wxConnectionBase *OnAcceptConnection(const wxString& topic);
59 MyServerConnection *m_serverConnection;
62 #endif // defined(__WXMSW__)