Audacity 3.2.0
IPCChannel.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file IPCChannel.h
6
7 @author Vitaly Sverchinsky
8
9 Part of lib-ipc library
10
11**********************************************************************/
12
13#pragma once
14
15#include <cstddef>
16
21class IPC_API IPCChannel
22{
23public:
24 virtual ~IPCChannel();
30 virtual void Send(const void* bytes, size_t length) = 0;
31};
32
37{
38public:
40
44 virtual void OnConnectionError() noexcept = 0;
49 virtual void OnConnect(IPCChannel& channel) noexcept = 0;
53 virtual void OnDisconnect() noexcept = 0;
60 virtual void OnDataAvailable(const void* data, size_t size) noexcept = 0;
61};
Interface for sending data from client to server or vice versa, complemented by IPCChannelStatusCallb...
Definition: IPCChannel.h:22
virtual ~IPCChannel()
virtual void Send(const void *bytes, size_t length)=0
Write data to the channel.
Interface for listening connection status changes.
Definition: IPCChannel.h:37
virtual void OnConnectionError() noexcept=0
Called when connection attempt fails.
virtual ~IPCChannelStatusCallback()