23 #include <wx/cmdline.h>
34 std::string GetSocketPath();
57 LocalApiResult SendRaise();
58 LocalApiResult SendOpen(
const char* path);
59 LocalApiResult SendQuit();
60 LocalApiResult GetRestEndpoint();
64 wxConnectionBase* connection;
87 bool OnExec(
const wxString&,
const wxString& data);
94 const void*
OnRequest(
const wxString& topic,
const wxString& item,
95 size_t* size, wxIPCFormat format) ;
110 const bool is_connected;
113 : wxServer(), is_connected(Create(path)) {}
117 wxConnectionBase* OnAcceptConnection(
const wxString& topic) {
138 wxConnectionBase* OnAcceptConnection(
const wxString& topic) {
139 assert(
false &&
"OnAcceptConnection called in DummyIpcServer");
153 LocalApiResult SendRaise() {
154 return LocalApiResult(
false,
"raise command not implemented");
157 LocalApiResult SendOpen(
const char* path) {
158 return LocalApiResult(
false,
"open command not implemented");
161 LocalApiResult SendQuit() {
162 return LocalApiResult(
false,
"quit command not implemented");
165 LocalApiResult GetRestEndpoint() {
166 return LocalApiResult(
false,
"get_rest_endpoint command not implemented");
169 wxConnectionBase* OnMakeConnection() {
170 assert(
false &&
"OnMakeConnection called in DummyIpcServer");
Useless place holder for LocalServerApi.
Implement LocalClientApi using a filesystem fifo/socket.
Started by IpcServer on filesystem fifo/socket connects.
bool OnExec(const wxString &, const wxString &data)
Handle commands without reply: quit and raise.
const void * OnRequest(const wxString &topic, const wxString &item, size_t *size, wxIPCFormat format)
Handle commands with a reply.
Implement LocalServerApi using a filesystem fifo/socket.
void Serve()
void, we are serving as long as there is a ServerFactory.
Base interface for local clients.
Base interface for local server command handling.
static void ReleaseInstance()
Release Instance.
static LocalServerApi & GetInstance()
The local API has a server side handling commands and a client part issuing commands.