10 #ifndef GO_PXL_SDK_GODISCOVERYCLIENT_H
11 #define GO_PXL_SDK_GODISCOVERYCLIENT_H
13 #include <kApi/kApi.h>
16 #include <GoApi/Exception.h>
18 class GoDiscoveryClientTests;
65 friend class ::GoDiscoveryClientTests;
85 void BlockingDiscover(k64u timeoutInMilliseconds);
94 const std::vector<GoInstance>& InstanceList();
106 const GoInstance* Instance(std::string ipAddress, k32u webPort);
118 void ConstructReceiver(kUdpClient* receiver);
129 void ConstructSender(kUdpClient* sender, kIpAddress address);
140 void Broadcast(
const void* data, k32u length);
151 void ParseReply(
Byte bytes[]);
153 std::vector<GoInstance> instances;
const k16u GOPXL_RESERVED_PORT_DISCOVERY_PROTOCOL
Definition: GoDiscoveryClient.h:23
#define GoPxLSdkClass
Definition: Def.h:35
const std::string GOPXL_DISCOVERY_SERIAL_NUMBER
Definition: GoDiscoveryClient.h:30
Definition: GoDiscoveryClient.h:63
const std::string GOPXL_DISCOVERY_WEB_PORT
Definition: GoDiscoveryClient.h:36
const std::string GOPXL_DISCOVERY_GDP_PORT
Definition: GoDiscoveryClient.h:37
const std::string GOPXL_DISCOVERY_DHCP
Definition: GoDiscoveryClient.h:41
const std::string GOPXL_DISCOVERY_GATEWAY
Definition: GoDiscoveryClient.h:40
const k64u GOPXL_BROADCAST_SIGNATURE
Definition: GoDiscoveryClient.h:22
Definition: GoInstance.h:18
const std::string GOPXL_DISCOVERY_MASK
Definition: GoDiscoveryClient.h:39
const kSSize CLIENT_BUFFER_SIZE
Definition: GoDiscoveryClient.h:27
const kSize MAX_MESSAGE_SIZE
Definition: GoDiscoveryClient.h:26
const std::string GOPXL_DISCOVERY_DEVICE_MODEL
Definition: GoDiscoveryClient.h:31
const std::string GOPXL_DISCOVERY_ADDRESS
Definition: GoDiscoveryClient.h:38
const std::string GOPXL_DISCOVERY_IS_REMOTE
Definition: GoDiscoveryClient.h:42
const std::string GOPXL_DISCOVERY_APP_ID
Definition: GoDiscoveryClient.h:33
Declares the GoPxLSdk.GoJson class.
const std::string GOPXL_DISCOVERY_APP_NAME
Definition: GoDiscoveryClient.h:32
Declares the GoPxLSdk.GoInstance class.
const k64u GOPXL_DISCOVERY_MESSAGE_ANNOUNCE
Definition: GoDiscoveryClient.h:25
const std::string GOPXL_DISCOVERY_ADDRESS_CONFLICT
Definition: GoDiscoveryClient.h:43
const k64u GOPXL_DISCOVERY_MESSAGE_DISCOVER
Definition: GoDiscoveryClient.h:24
kByte Byte
Definition: Def.h:48
const std::string GOPXL_DISCOVERY_APP_VERSION
Definition: GoDiscoveryClient.h:34
const std::string GOPXL_DISCOVERY_CONTROL_PORT
Definition: GoDiscoveryClient.h:35
const kSSize CLIENT_SOCKET_SIZE
Definition: GoDiscoveryClient.h:28