Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dev::UnixDomainSocketServer Class Reference

#include <UnixSocketServer.h>

Inheritance diagram for dev::UnixDomainSocketServer:
[legend]
Collaboration diagram for dev::UnixDomainSocketServer:
[legend]

Public Member Functions

 UnixDomainSocketServer (std::string const &_appId)
 
 ~UnixDomainSocketServer ()
 
bool StartListening () override
 
bool StopListening () override
 
- Public Member Functions inherited from dev::IpcServerBase< int >
 IpcServerBase (std::string const &_path)
 
virtual bool SendResponse (std::string const &_response, void *_addInfo=nullptr)
 

Protected Member Functions

void Listen () override
 
void CloseConnection (int _socket) override
 
size_t Write (int _connection, std::string const &_data) override
 
size_t Read (int _connection, void *_data, size_t _size) override
 
- Protected Member Functions inherited from dev::IpcServerBase< int >
void GenerateResponse (int_connection)
 

Protected Attributes

sockaddr_un m_address
 
int m_socket = 0
 
- Protected Attributes inherited from dev::IpcServerBase< int >
bool m_running
 
std::string m_path
 
std::unordered_set< int > m_sockets
 
std::mutex x_sockets
 
std::thread m_listeningThread
 

Detailed Description

Definition at line 33 of file UnixSocketServer.h.

Constructor & Destructor Documentation

UnixDomainSocketServer::UnixDomainSocketServer ( std::string const &  _appId)

Definition at line 63 of file UnixSocketServer.cpp.

UnixDomainSocketServer::~UnixDomainSocketServer ( )

Definition at line 68 of file UnixSocketServer.cpp.

Here is the call graph for this function:

Member Function Documentation

void UnixDomainSocketServer::CloseConnection ( int  _socket)
overrideprotectedvirtual

Implements dev::IpcServerBase< int >.

Definition at line 126 of file UnixSocketServer.cpp.

void UnixDomainSocketServer::Listen ( )
overrideprotectedvirtual

Implements dev::IpcServerBase< int >.

Definition at line 109 of file UnixSocketServer.cpp.

Here is the call graph for this function:

size_t UnixDomainSocketServer::Read ( int  _connection,
void *  _data,
size_t  _size 
)
overrideprotectedvirtual

Implements dev::IpcServerBase< int >.

Definition at line 140 of file UnixSocketServer.cpp.

bool UnixDomainSocketServer::StartListening ( )
overridevirtual

Reimplemented from dev::IpcServerBase< int >.

Definition at line 73 of file UnixSocketServer.cpp.

Here is the call graph for this function:

bool UnixDomainSocketServer::StopListening ( )
overridevirtual

Reimplemented from dev::IpcServerBase< int >.

Definition at line 96 of file UnixSocketServer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t UnixDomainSocketServer::Write ( int  _connection,
std::string const &  _data 
)
overrideprotectedvirtual

Implements dev::IpcServerBase< int >.

Definition at line 132 of file UnixSocketServer.cpp.

Member Data Documentation

sockaddr_un dev::UnixDomainSocketServer::m_address
protected

Definition at line 47 of file UnixSocketServer.h.

int dev::UnixDomainSocketServer::m_socket = 0
protected

Definition at line 48 of file UnixSocketServer.h.


The documentation for this class was generated from the following files: