Audacity 3.2.0
|
Simple TCP socket based ipc client. When created attempts to connect to existing server (see IPCServer). More...
#include <IPCClient.h>
Classes | |
class | Impl |
Public Member Functions | |
IPCClient (int port, IPCChannelStatusCallback &callback) | |
Attempts to connect to a server, 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... | |
~IPCClient () | |
Closes connection if any. More... | |
Private Attributes | |
std::unique_ptr< Impl > | mImpl |
Simple TCP socket based ipc client. When created attempts to connect to existing server (see IPCServer).
Definition at line 23 of file IPCClient.h.
IPCClient::IPCClient | ( | int | port, |
IPCChannelStatusCallback & | callback | ||
) |
Attempts to connect to a server, 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.
port | TCP port number used to connect to server |
callback | Channel status callback. May be accessed from working threads. |
Definition at line 57 of file IPCClient.cpp.
References mImpl.
|
default |
Closes connection if any.
|
private |
Definition at line 26 of file IPCClient.h.
Referenced by IPCClient().