Speedify SDK for Desktop  10.7.0
results.h
Go to the documentation of this file.
1 #ifndef SPEEDIFYSDK_RESULTS
2 #define SPEEDIFYSDK_RESULTS
3 
4 #include "sdkdefines.h"
5 #include "types.h"
6 #include <stdbool.h>
7 
16 
19 typedef uint64_t SpeedifySDK_EventID;
20 
23 #define SpeedifySDK_BaseResult_Header \
24  \
25 bool isError;\
26  \
27 SpeedifySDK_ErrorType errorCode;\
28  \
29 char errorMessage[SPEEDIFYSDK_MAX_ERROR_STRING];\
30  \
31 SpeedifySDK_EventID eventId;
32 
33 
36 SpeedifySDK_EXTERN typedef struct {
37  SpeedifySDK_BaseResult_Header
39 
42 SpeedifySDK_EXTERN typedef struct {
43  SpeedifySDK_BaseResult_Header
48 
51 SpeedifySDK_EXTERN typedef struct {
52  SpeedifySDK_BaseResult_Header
57 
60 SpeedifySDK_EXTERN typedef struct {
61  SpeedifySDK_BaseResult_Header
66 
69 SpeedifySDK_EXTERN typedef struct {
70  SpeedifySDK_BaseResult_Header
73  uint32_t count;
78 
81 SpeedifySDK_EXTERN typedef struct {
82  SpeedifySDK_BaseResult_Header
89 #define SpeedifySDK_DirectoryDomainResult SpeedifySDK_DirectorySettingsResult
90 
93 SpeedifySDK_EXTERN typedef struct {
94  SpeedifySDK_BaseResult_Header
99 
102 SpeedifySDK_EXTERN typedef struct {
103  SpeedifySDK_BaseResult_Header
106  uint32_t count;
111 
112 
115 SpeedifySDK_EXTERN typedef struct {
116  SpeedifySDK_BaseResult_Header
121 
124 SpeedifySDK_EXTERN typedef struct {
125  SpeedifySDK_BaseResult_Header
130 
133 SpeedifySDK_EXTERN typedef struct {
134  SpeedifySDK_BaseResult_Header
139 
142 SpeedifySDK_EXTERN typedef struct {
143  SpeedifySDK_BaseResult_Header
148 
151 SpeedifySDK_EXTERN typedef struct {
152  SpeedifySDK_BaseResult_Header
157 
158 
161 SpeedifySDK_EXTERN typedef struct {
162  SpeedifySDK_BaseResult_Header
170 
173 SpeedifySDK_EXTERN typedef struct {
174  SpeedifySDK_BaseResult_Header
179 
182 SpeedifySDK_EXTERN typedef struct {
183  SpeedifySDK_BaseResult_Header
194 
197 SpeedifySDK_EXTERN typedef struct {
198  SpeedifySDK_BaseResult_Header
203 SpeedifySDK_EXTERN typedef struct {
204  SpeedifySDK_BaseResult_Header
206 
209 SpeedifySDK_EXTERN typedef struct {
210  SpeedifySDK_BaseResult_Header
212 
215 SpeedifySDK_EXTERN typedef struct {
216  SpeedifySDK_BaseResult_Header
219 
222 SpeedifySDK_EXTERN typedef struct {
223  SpeedifySDK_BaseResult_Header
226  uint32_t count;
231 
234 SpeedifySDK_EXTERN typedef struct {
235  SpeedifySDK_BaseResult_Header
238  bool enabled;
243 
246 SpeedifySDK_EXTERN typedef struct {
247  SpeedifySDK_BaseResult_Header
252 
255 SpeedifySDK_EXTERN typedef struct {
256  SpeedifySDK_BaseResult_Header
261  const char* settingsJson;
263 
266 SpeedifySDK_EXTERN typedef struct {
267  SpeedifySDK_BaseResult_Header
272  const char* userData;
274 
277 SpeedifySDK_EXTERN typedef struct {
278  SpeedifySDK_BaseResult_Header
283 
284 
287 SpeedifySDK_EXTERN typedef struct {
288  SpeedifySDK_BaseResult_Header
293 
294 
297 SpeedifySDK_EXTERN typedef struct {
298  SpeedifySDK_BaseResult_Header
303 
306 #define SpeedifySDK_SafeBro_Error_Header \
307  \
308 bool sbError;\
309  \
310 SpeedifySDK_SafeBrowsingError sbErrorCode;\
311  \
312 char sbErrorMessage[SPEEDIFYSDK_MAX_ERROR_STRING];
313 
316 SpeedifySDK_EXTERN typedef struct {
317  SpeedifySDK_BaseResult_Header
320 
321 
324 SpeedifySDK_EXTERN typedef struct {
325  SpeedifySDK_BaseResult_Header
332  bool configSet;
335  bool enabled;
337 
340 SpeedifySDK_EXTERN typedef struct {
341  SpeedifySDK_BaseResult_Header
344  uint32_t minTime;
347  uint32_t maxTime;
350  uint32_t avgTime;
353  uint32_t numErrors;
356  uint32_t numBlocks;
359  double failureRate;
361 
364 SpeedifySDK_EXTERN typedef struct {
365  SpeedifySDK_BaseResult_Header
371 
374 SpeedifySDK_EXTERN typedef struct {
375  SpeedifySDK_BaseResult_Header
383 
386 SpeedifySDK_EXTERN typedef struct {
387  SpeedifySDK_BaseResult_Header
392 
395 SpeedifySDK_EXTERN typedef struct {
396  SpeedifySDK_BaseResult_Header
401 
404 #endif
uint64_t SpeedifySDK_EventID
Callback ID type.
Definition: results.h:19
Account create result.
Definition: results.h:203
SpeedifySDK_DisconnectEvent lastDisconnectEvent
The last disconnect event.
Definition: results.h:390
SpeedifySDK_NetworkType type
Type of the new adapter.
Definition: results.h:168
Settings for the local proxy.
Definition: types.h:1021
Password change result.
Definition: results.h:209
#define SPEEDIFYSDK_MAX_ADAPTER_NAME
Adapter name length.
Definition: sdkdefines.h:33
Adapters result.
Definition: results.h:102
bool accountExists
Definition: results.h:199
SpeedifySDK_ConnectionStatsGroup connectionStats
A group of connection stats.
Definition: results.h:146
Data on an account.
Definition: types.h:217
SpeedifySDK_SessionStatPeriods sessionStats
Session stats.
Definition: results.h:155
Accounting result.
Definition: results.h:93
Session Stats result.
Definition: results.h:151
Log file settings result.
Definition: results.h:395
double failureRate
The lookup failure rate.
Definition: results.h:359
bool willDisconnect
Definition: results.h:217
SpeedifySDK_LocalProxySettings localProxySettings
Local proxy settings.
Definition: results.h:250
Firewall settings.
Definition: types.h:1087
SpeedifySDK_State state
Current state.
Definition: results.h:46
#define SpeedifySDK_SafeBro_Error_Header
Common header fields of Safe Browsing results.
Definition: results.h:306
SpeedifySDK_SpeedTestReport testReport
Test report.
Definition: results.h:177
uint32_t count
Number of networks with detected captive portals.
Definition: results.h:226
Captive portal check result.
Definition: results.h:222
Firewall settings result.
Definition: results.h:277
Basic result.
Definition: results.h:36
Connection result.
Definition: results.h:60
Connection Stats result.
Definition: results.h:142
SpeedifySDK_DirectorySettings directorySettings
Current directory settings.
Definition: results.h:85
SpeedifySDK_AccountingData accounting
Information on the account.
Definition: results.h:97
A grouping of ConnectionStats.
Definition: types.h:665
Speedify settings.
Definition: types.h:478
Safe Browsing Stats.
Definition: results.h:340
Directory settings result.
Definition: results.h:81
SpeedifySDK_DaemonLogSettings daemon
Daemon log file settings.
Definition: results.h:399
Local proxy settings result.
Definition: results.h:246
uint32_t numErrors
The number of safe browsing errors.
Definition: results.h:353
Speedtest result.
Definition: results.h:173
Captive portal login mode result.
Definition: results.h:234
SpeedifySDK_NetworkType type
Type of the new adapter.
Definition: results.h:189
Safe Browsing error.
Definition: results.h:364
SpeedifySDK_Settings settings
Settings.
Definition: results.h:128
#define SPEEDIFYSDK_MAX_SERVERS
Servers supported.
Definition: sdkdefines.h:18
Information about a network adapter.
Definition: types.h:352
uint32_t numBlocks
The number of safe browsing blocks.
Definition: results.h:356
Privacy Settings result.
Definition: results.h:133
uint32_t minTime
The fastest lookup time (ms)
Definition: results.h:344
Local proxy domain watchlist hit result.
Definition: results.h:287
Safe Browsing block.
Definition: results.h:374
uint32_t maxTime
The slowest lookup time (ms)
Definition: results.h:347
Directory result.
Definition: results.h:69
#define SPEEDIFYSDK_MAX_WATCHLIST_TITLE
Maximum title length of domain watchlist item.
Definition: sdkdefines.h:75
SpeedifySDK_AdapterUsageData usageData
Current usage on the adapter.
Definition: results.h:192
Automatic server selection method settings.
Definition: types.h:388
Directory settings.
Definition: types.h:1289
Streaming stats result.
Definition: results.h:297
const char * userData
Settings json as a string.
Definition: results.h:272
SpeedifySDK_StreamingStats streamingStats
Streaming stats.
Definition: results.h:301
SpeedifySDK_NetworkType
Type of network adapter.
Definition: types.h:269
Server Settings result.
Definition: results.h:115
SpeedifySDK_ServerInformationDetailed connectedServer
Connected server.
Definition: results.h:64
Streaming mode stats.
Definition: types.h:1165
uint32_t avgTime
The average lookup time (ms)
Definition: results.h:350
Disconnect event result.
Definition: results.h:386
Torrent detection result.
Definition: results.h:215
bool configSet
If the additional config is set.
Definition: results.h:332
State result.
Definition: results.h:42
Statistics for sessions over various time periods.
Definition: types.h:822
Safe Browsing result.
Definition: results.h:324
uint32_t count
Number of adapters.
Definition: results.h:106
Vendor settings result.
Definition: results.h:255
New Adapter result.
Definition: results.h:161
Safe Browsing error on initialization.
Definition: results.h:316
Privacy settings.
Definition: types.h:531
uint32_t count
Number of servers.
Definition: results.h:73
SpeedifySDK_FirewallSettings firewallSettings
Firewall settings.
Definition: results.h:281
SpeedifySDK_State
State of the VPN.
Definition: types.h:67
bool enabled
If the captive portal login mode is enabled.
Definition: results.h:238
Adapter Overlimit result.
Definition: results.h:182
Version structure.
Definition: types.h:46
const char * settingsJson
Settings json as a string.
Definition: results.h:261
bool enabled
If Safe Browsing is enabled.
Definition: results.h:335
Version result.
Definition: results.h:51
Information about a disconnect event.
Definition: types.h:1232
Vendor user data result.
Definition: results.h:266
Speedtest results.
Definition: types.h:895
SpeedifySDK_ServerSettings serverSettings
Settings.
Definition: results.h:119
SpeedifySDK_SafeBro_Error_Header bool initialized
If Safe Browsing is initialized.
Definition: results.h:329
Information about a server.
Definition: types.h:134
SpeedifySDK_PrivacySettings privacySettings
Privacy settings.
Definition: results.h:137
Detailed information about a server.
Definition: types.h:151
bool redirected
If the connection was redirected to a warning page vs blocked.
Definition: results.h:378
SpeedifySDK_Version version
Definition: results.h:55
#define SPEEDIFYSDK_MAX_HOST_LEN
Maximum length of SpeedifySDK_SafeBrowsingErrorResult host field.
Definition: sdkdefines.h:87
Account check result.
Definition: results.h:197
Settings result.
Definition: results.h:124
Information about the data usage and limits of a network adapter.
Definition: types.h:325
Settings for logging in the daemon.
Definition: types.h:1259
#define SPEEDIFYSDK_MAX_ADAPTERS
Simultaneous adapters supported.
Definition: sdkdefines.h:15