10 #ifndef GO_PXL_SDK_GOCTRLCHANNEL_H
11 #define GO_PXL_SDK_GOCTRLCHANNEL_H
14 #include <kApi/Io/kNetwork.h>
15 #include <kApi/kApiDef.h>
72 virtual void Connect(
const kIpAddress& address, k16u port,
81 virtual void Disconnect() = 0;
90 virtual bool IsConnected()
const = 0;
102 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:35
#define GoPxLSdkClass
Definition: Def.h:35
Interface for all control channel implementations.
Definition: GoCtrlChannel.h:51
Declares the GoPxLSdk.GoResponse class.
constexpr k32u GO_PXL_SDK_DEFAULT_TCP_TIMEOUT_MILLISECONDS
Definition: Def.h:38
Definition: GoRequest.h:22
Declares the general SDK definitions.
ReadErrorType
Definition: GoCtrlChannel.h:24
std::function< void(k64u id, const std::exception &e)> GoCtrlChannelWriteErrorHandler
Function to receive write thread errors.
Definition: GoCtrlChannel.h:40
Declares the GoPxLSdk.GoRequest class.
std::function< void(ReadErrorType readErrorType, const std::exception &e)> GoCtrlChannelReadErrorHandler
Function to receive read thread errors.
Definition: GoCtrlChannel.h:45