10 #ifndef GO_PXL_SDK_GORESTCLIENT_H
11 #define GO_PXL_SDK_GORESTCLIENT_H
13 #include <kApi/Io/kNetwork.h>
21 class GoRestClientTests;
35 using GoStreamHandler = std::function<void(const std::shared_ptr<GoStreamResponse>&)>;
59 void Connect(kIpAddress address, k16u port = 0);
77 bool IsConnected()
const;
231 void ResponseHandler(std::shared_ptr<GoResponse> response);
233 void WriteErrorHandler(k64u requestId,
const std::exception& e);
235 void Callback(std::shared_ptr<GoResponse> response);
240 std::mutex commandMutex;
243 std::deque<GoTransaction> transactionQueue;
245 std::shared_ptr<GoCtrlChannel> channel;
250 friend class ::GoRestClientTests;
Simplify working with json data.
Definition: GoJson.h:39
std::function< void(const std::shared_ptr< GoStreamResponse > &)> GoStreamHandler
Data handler used in GoRestClient::StartStream.
Definition: GoRestClient.h:35
#define GoPxLSdkClass
Definition: Def.h:35
Declares the GoPxLSdk.GoCtrlChannel class.
Declares the GoPxLSdk.GoResponse class.
std::function< void(const std::shared_ptr< GoNotificationResponse > &)> GoNotificationHandler
Notification handler used in GoRestClient::Sub.
Definition: GoRestClient.h:29
Declares the GoPxLSdk.GoCtrlChannelV1 class.
Definition: GoRestClient.h:37
Declares the GoPxLSdk.GoTransaction class.
Declares the GoPxLSdk.GoJson class.
Definition: GoTransaction.h:24
std::function< void(ReadErrorType readErrorType, const std::exception &e)> GoCtrlChannelReadErrorHandler
Function to receive read thread errors.
Definition: GoCtrlChannel.h:45