Audacity 3.2.0
|
Simple TCP socket based ipc server. When created server starts to listen for incoming connection (see IPCClient). More...
#include <IPCServer.h>
Classes | |
class | Impl |
Public Member Functions | |
IPCServer (IPCChannelStatusCallback &callback) | |
May fail with exception or with call to IPCChannelStatusCallback::OnConnectionError. Callback should be guaranteed to be alive until either IPCChannelStatusCallback::OnDisconnect or IPCChannelStatusCallback::OnConnectionError is called. More... | |
~IPCServer () | |
Closes connection if any. More... | |
int | GetConnectPort () const noexcept |
Private Attributes | |
std::unique_ptr< Impl > | mImpl |
Simple TCP socket based ipc server. When created server starts to listen for incoming connection (see IPCClient).
Definition at line 24 of file IPCServer.h.
IPCServer::IPCServer | ( | IPCChannelStatusCallback & | callback | ) |
May fail with exception or with call to IPCChannelStatusCallback::OnConnectionError. Callback should be guaranteed to be alive until either IPCChannelStatusCallback::OnDisconnect or IPCChannelStatusCallback::OnConnectionError is called.
callback | Channel status callback. May be accessed from working threads. |
Definition at line 136 of file IPCServer.cpp.
References mImpl.
|
default |
Closes connection if any.
|
noexcept |
Returns port number to connect to. Valid until connection is established.
Definition at line 149 of file IPCServer.cpp.
References mImpl.
|
private |
Definition at line 27 of file IPCServer.h.
Referenced by GetConnectPort(), and IPCServer().