Added some basic IPC functionality using wxServer, wxClient and wxConnection.
Added the -blockamount command line option for an example of usage.
This commit is contained in:
28
ipc.h
Normal file
28
ipc.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _IPC_H
|
||||
#define _IPC_H
|
||||
|
||||
class CServer : public wxServer {
|
||||
public:
|
||||
wxConnectionBase * OnAcceptConnection (const wxString &topic);
|
||||
};
|
||||
|
||||
class CClient : public wxClient {
|
||||
public:
|
||||
wxConnectionBase * OnMakeConnection ();
|
||||
};
|
||||
|
||||
class CServerConnection : public wxConnection {
|
||||
public:
|
||||
const void * OnRequest (const wxString &topic, const wxString &item, size_t *size, wxIPCFormat format);
|
||||
};
|
||||
|
||||
class CClientConnection : public wxConnection {
|
||||
public:
|
||||
CClientConnection() : wxConnection() {}
|
||||
~CClientConnection() {}
|
||||
|
||||
bool OnAdvise (const wxString &topic, const wxString &item, const void *data, size_t size, wxIPCFormat format);
|
||||
};
|
||||
|
||||
#endif /* _IPC_H */
|
||||
|
||||
Reference in New Issue
Block a user