123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #ifndef UA_CLIENT_CONFIG_H
- #define UA_CLIENT_CONFIG_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "ua_plugin_network.h"
- typedef enum {
- UA_CLIENTSTATE_DISCONNECTED,
- UA_CLIENTSTATE_CONNECTED,
- UA_CLIENTSTATE_SECURECHANNEL,
- UA_CLIENTSTATE_SESSION,
- UA_CLIENTSTATE_SESSION_RENEWED
- } UA_ClientState;
- struct UA_Client;
- typedef struct UA_Client UA_Client;
- typedef void (*UA_ClientStateCallback)(UA_Client *client, UA_ClientState clientState);
- #ifdef UA_ENABLE_SUBSCRIPTIONS
- typedef void (*UA_SubscriptionInactivityCallback)(UA_Client *client, UA_UInt32 subscriptionId, void *subContext);
- #endif
- typedef struct UA_ClientConfig {
- UA_UInt32 timeout;
- UA_UInt32 secureChannelLifeTime;
- UA_Logger logger;
- UA_ConnectionConfig localConnectionConfig;
- UA_ConnectClientConnection connectionFunc;
-
- size_t customDataTypesSize;
- const UA_DataType *customDataTypes;
-
- UA_ClientStateCallback stateCallback;
- #ifdef UA_ENABLE_SUBSCRIPTIONS
- UA_SubscriptionInactivityCallback subscriptionInactivityCallback;
- #endif
- void *clientContext;
- #ifdef UA_ENABLE_SUBSCRIPTIONS
-
-
- UA_UInt16 outStandingPublishRequests;
- #endif
- } UA_ClientConfig;
- UA_ClientConfig UA_EXPORT
- UA_Server_getClientConfig(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|