Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <IpcServerBase.h>
Public Member Functions | |
IpcServerBase (std::string const &_path) | |
virtual bool | StartListening () |
virtual bool | StopListening () |
virtual bool | SendResponse (std::string const &_response, void *_addInfo=nullptr) |
Protected Member Functions | |
virtual void | Listen ()=0 |
virtual void | CloseConnection (S _socket)=0 |
virtual size_t | Write (S _connection, std::string const &_data)=0 |
virtual size_t | Read (S _connection, void *_data, size_t _size)=0 |
void | GenerateResponse (S _connection) |
Protected Attributes | |
bool | m_running = false |
std::string | m_path |
std::unordered_set< S > | m_sockets |
std::mutex | x_sockets |
std::thread | m_listeningThread |
Definition at line 33 of file IpcServerBase.h.
IpcServerBase::IpcServerBase | ( | std::string const & | _path | ) |
Definition at line 41 of file IpcServerBase.cpp.
|
protectedpure virtual |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
virtual |
|
virtual |
Reimplemented in dev::UnixDomainSocketServer.
Definition at line 46 of file IpcServerBase.cpp.
|
virtual |
Reimplemented in dev::UnixDomainSocketServer.
Definition at line 57 of file IpcServerBase.cpp.
|
protectedpure virtual |
|
protected |
Definition at line 53 of file IpcServerBase.h.
|
protected |
Definition at line 50 of file IpcServerBase.h.
|
protected |
Definition at line 49 of file IpcServerBase.h.
|
protected |
Definition at line 51 of file IpcServerBase.h.
|
protected |
Definition at line 52 of file IpcServerBase.h.