123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef UA_CLIENT_CONFIG_H
- #define UA_CLIENT_CONFIG_H
- #include "ua_config.h"
- #include "ua_plugin_network.h"
- _UA_BEGIN_DECLS
- struct UA_Client;
- typedef struct UA_Client UA_Client;
- typedef enum {
- UA_CLIENTSTATE_DISCONNECTED,
- UA_CLIENTSTATE_WAITING_FOR_ACK,
- UA_CLIENTSTATE_CONNECTED,
- UA_CLIENTSTATE_SECURECHANNEL,
- UA_CLIENTSTATE_SESSION,
- UA_CLIENTSTATE_SESSION_DISCONNECTED,
- UA_CLIENTSTATE_SESSION_RENEWED
- } UA_ClientState;
- typedef struct {
- UA_UInt32 timeout;
- UA_UInt32 secureChannelLifeTime;
- UA_Logger logger;
- UA_ConnectionConfig localConnectionConfig;
-
- UA_ConnectClientConnection connectionFunc;
- UA_ConnectClientConnection initConnectionFunc;
- void (*pollConnectionFunc)(UA_Client *client, void *context);
-
- const UA_DataTypeArray *customDataTypes;
-
- void (*stateCallback)(UA_Client *client, UA_ClientState clientState);
-
- UA_UInt32 connectivityCheckInterval;
-
- void (*inactivityCallback)(UA_Client *client);
- void *clientContext;
- #ifdef UA_ENABLE_SUBSCRIPTIONS
-
- UA_UInt16 outStandingPublishRequests;
-
- void (*subscriptionInactivityCallback)(UA_Client *client,
- UA_UInt32 subscriptionId,
- void *subContext);
- #endif
- } UA_ClientConfig;
- _UA_END_DECLS
- #endif
|