9 #ifndef GO_PXL_SDK_GOCTRLCHANNEL_H
10 #define GO_PXL_SDK_GOCTRLCHANNEL_H
13 #include <kApi/Io/kNetwork.h>
14 #include <kApi/kApiDef.h>
71 virtual void Connect(
const kIpAddress& address, k16u port,
80 virtual void Disconnect() = 0;
89 virtual bool IsConnected()
const = 0;
101 virtual void SendRequest(
const GoRequest& request) = 0;
std::function< void(const std::shared_ptr< GoResponse > response)> GoCtrlChannelResponseHandler
Function to receive responses from the server asynchronously.
Definition: GoCtrlChannel.h:34
#define GoPxLSdkClass
Definition: Def.h:35
Interface for all control channel implementations.
Definition: GoCtrlChannel.h:50
constexpr k32u GO_PXL_SDK_DEFAULT_TCP_TIMEOUT_MILLISECONDS
Definition: Def.h:38
Definition: GoRequest.h:21
Declares the general SDK definitions.
ReadErrorType
Definition: GoCtrlChannel.h:23
std::function< void(k64u id, const std::exception &e)> GoCtrlChannelWriteErrorHandler
Function to receive write thread errors.
Definition: GoCtrlChannel.h:39
std::function< void(ReadErrorType readErrorType, const std::exception &e)> GoCtrlChannelReadErrorHandler
Function to receive read thread errors.
Definition: GoCtrlChannel.h:44