1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /*
- * opcua_connectionHelper.h
- *
- * Created on: Jan 13, 2014
- * Author: opcua
- */
- #ifndef OPCUA_CONNECTIONHELPER_H_
- #define OPCUA_CONNECTIONHELPER_H_
- #include "opcua_builtInDatatypes.h"
- #include "opcua_types.h"
- enum packetType
- {
- packetType_HEL,
- packetType_ACK,
- packetType_ERR,
- packetType_OPN,
- packetType_MSG,
- packetType_CLO
- };
- enum connectionState
- {
- connectionState_CLOSED,
- connectionState_OPENING,
- connectionState_ESTABLISHED,
- };
- typedef struct buffer_t
- {
- UInt32 recvBufferSize;
- UInt32 sendBufferSize;
- UInt32 protocolVersion;
- UInt32 maxMessageSize;
- UInt32 maxChunkCount;
- }TL_buffer;
- struct TL_connection
- {
- Int32 socket;
- UInt32 connectionState;
- TL_buffer clientConf;
- TL_buffer serverConf;
- UA_String endpointURL;
- };
- struct SL_connection
- {
- T_ApplicationInstanceCertificate clientCertificate;
- UInt32 requestType;
- UA_String secureChannelId;
- UInt32 UInt32_secureChannelId;
- UInt32 securityMode;
- UA_String clientNonce;
- UA_Duration requestedLifetime; /// life time of the secure channel
- UA_DateTime requestedAt; /// Point in time in which the secure channel was requested
- UInt32 connectionState;
- UInt32 tokenId;
- UInt32 revisedLifetime;
- };
- struct SS_connection
- {
- };
- typedef struct UA_connection_t
- {
- struct TL_connection transportLayer;
- struct SL_connection secureLayer;
- struct SS_connection serviceLayer;
- }UA_connection;
- #endif /* OPCUA_CONNECTIONHELPER_H_ */
|