9 #ifndef GO_PXL_SDK_GORESTCLIENT_H
10 #define GO_PXL_SDK_GORESTCLIENT_H
12 #include <kApi/Io/kNetwork.h>
20 class GoRestClientTests;
34 using GoStreamHandler = std::function<void(const std::shared_ptr<GoStreamResponse>&)>;
58 void Connect(kIpAddress address, k32u port = 0);
76 bool IsConnected()
const;
221 void ResponseHandler(std::shared_ptr<GoResponse> response);
225 void Callback(std::shared_ptr<GoResponse> response);
227 void HandleReadError(
const std::exception& e);
229 void HandleWriteError(k64u requestId,
const std::exception& e);
234 std::mutex commandMutex;
237 std::deque<GoTransaction> transactionQueue;
239 std::shared_ptr<GoCtrlChannel> channel;
244 friend class ::GoRestClientTests;
Simplify working with json data.
Definition: GoJson.h:38
std::function< void(const std::shared_ptr< GoStreamResponse > &)> GoStreamHandler
Data handler used in GoRestClient::StartStream.
Definition: GoRestClient.h:34
#define GoPxLSdkClass
Definition: Def.h:35
GoCtrlChannelErrorType
Definition: GoCtrlChannel.h:23
std::function< void(const std::shared_ptr< GoNotificationResponse > &)> GoNotificationHandler
Notification handler used in GoRestClient::Sub.
Definition: GoRestClient.h:28
Definition: GoRestClient.h:36
Definition: GoTransaction.h:23