diff options
| author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-10 19:33:04 +0000 |
|---|---|---|
| committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-10 19:33:04 +0000 |
| commit | 1c5d5e58c67e63fd83afd945c7db1190de62514a (patch) | |
| tree | 3220aa303c10ebbcef8520e38a1010f6a7972586 /ipc.cpp | |
| parent | Added some basic IPC functionality using wxServer, wxClient and wxConnection. (diff) | |
| download | discoin-1c5d5e58c67e63fd83afd945c7db1190de62514a.tar.xz discoin-1c5d5e58c67e63fd83afd945c7db1190de62514a.zip | |
revert revision 56, going in different direction with boost::asio and JSON-RPC
Diffstat (limited to 'ipc.cpp')
| -rw-r--r-- | ipc.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ipc.cpp b/ipc.cpp deleted file mode 100644 index 86e57674e..000000000 --- a/ipc.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Inter-process calling functionality - */ - -#include "headers.h" - -wxConnectionBase * CServer::OnAcceptConnection (const wxString &topic) { - return new CServerConnection; -} - -wxConnectionBase * CClient::OnMakeConnection () { - return new CClientConnection; -} - -// For request based handling -const void * CServerConnection::OnRequest (const wxString &topic, const wxString &item, size_t *size, wxIPCFormat format) { - const char * output; - - if (item == "blockamount") { - stringstream stream; - stream << nBestHeight + 1; - output = stream.str().c_str(); - } - else - output = "Unknown identifier"; - - return output; -} - -// For event based handling -bool CClientConnection::OnAdvise (const wxString &topic, const wxString &item, const void *data, size_t size, wxIPCFormat format) { - return false; -}
\ No newline at end of file |