bool hvConnection::OnPoke(const wxString& WXUNUSED(topic),
const wxString& item,
- wxChar *data,
- int WXUNUSED(size),
- wxIPCFormat WXUNUSED(format))
+ const void *buf,
+ size_t size,
+ wxIPCFormat format)
{
+ const wxString data = GetTextFromData(buf, size, format);
+
// wxLogStatus("Poke command: %s = %s", item.c_str(), data);
//topic is not tested
return true;
}
-wxChar *hvConnection::OnRequest(const wxString& WXUNUSED(topic),
- const wxString& WXUNUSED(item),
- int * WXUNUSED(size),
- wxIPCFormat WXUNUSED(format))
-{
- return NULL;
-}
-
-bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic),
- const wxString& WXUNUSED(item))
-{
- return true;
-}
-
#endif // #if wxUSE_IPC
virtual ~hvConnection();
bool OnExec(const wxString& topic, const wxString& data);
- wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
- bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
- bool OnStartAdvise(const wxString& topic, const wxString& item);
+ bool OnPoke(const wxString& topic, const wxString& item,
+ const void *data, size_t size, wxIPCFormat format);
private:
};