![]() |
Mema
Memory Matrix — multi-channel audio matrix monitor and router
|
TCP server that accepts multiple simultaneous client connections on a fixed port. More...
#include <InterprocessConnection.h>
Inheritance diagram for Mema::InterprocessConnectionServerImpl:
Collaboration diagram for Mema::InterprocessConnectionServerImpl:Public Member Functions | |
| InterprocessConnectionServerImpl () | |
| virtual | ~InterprocessConnectionServerImpl () |
| void | createMessageThread (int id) |
| std::map< int, std::pair< double, bool > > | getListHealth () |
| bool | hasActiveConnection (int id) |
| bool | hasActiveConnections () |
| const std::unique_ptr< InterprocessConnectionImpl > & | getActiveConnection (int id) |
| const std::vector< int > | cleanupDeadConnections () |
| const std::vector< int > | getActiveConnectionIds () |
| bool | enqueueMessage (const MemoryBlock &message, std::vector< int > sendIds={}) |
Public Attributes | |
| std::function< void(int)> | onConnectionCreated |
Static Public Attributes | |
| static constexpr double | s_listSizeThreshold = 35.0 |
TCP server that accepts multiple simultaneous client connections on a fixed port.
Definition at line 57 of file InterprocessConnection.h.
| Mema::InterprocessConnectionServerImpl::InterprocessConnectionServerImpl | ( | ) |
Definition at line 62 of file InterprocessConnection.cpp.
|
virtual |
Definition at line 67 of file InterprocessConnection.cpp.
| const std::vector< int > Mema::InterprocessConnectionServerImpl::cleanupDeadConnections | ( | ) |
Definition at line 173 of file InterprocessConnection.cpp.
| void Mema::InterprocessConnectionServerImpl::createMessageThread | ( | int | id | ) |
Definition at line 75 of file InterprocessConnection.cpp.
| bool Mema::InterprocessConnectionServerImpl::enqueueMessage | ( | const MemoryBlock & | message, |
| std::vector< int > | sendIds = {} |
||
| ) |
Definition at line 197 of file InterprocessConnection.cpp.
References s_listSizeThreshold.
| const std::unique_ptr< InterprocessConnectionImpl > & Mema::InterprocessConnectionServerImpl::getActiveConnection | ( | int | id | ) |
Definition at line 168 of file InterprocessConnection.cpp.
| const std::vector< int > Mema::InterprocessConnectionServerImpl::getActiveConnectionIds | ( | ) |
Definition at line 189 of file InterprocessConnection.cpp.
| std::map< int, std::pair< double, bool > > Mema::InterprocessConnectionServerImpl::getListHealth | ( | ) |
Definition at line 124 of file InterprocessConnection.cpp.
References s_listSizeThreshold.
| bool Mema::InterprocessConnectionServerImpl::hasActiveConnection | ( | int | id | ) |
Definition at line 143 of file InterprocessConnection.cpp.
Referenced by hasActiveConnections().
| bool Mema::InterprocessConnectionServerImpl::hasActiveConnections | ( | ) |
Definition at line 158 of file InterprocessConnection.cpp.
References hasActiveConnection().
| std::function<void(int)> Mema::InterprocessConnectionServerImpl::onConnectionCreated |
Definition at line 76 of file InterprocessConnection.h.
|
staticconstexpr |
Definition at line 78 of file InterprocessConnection.h.
Referenced by enqueueMessage(), and getListHealth().