ua_transport_binary.h 950 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef OPCUA_TRANSPORT_BINARY_H_
  2. #define OPCUA_TRANSPORT_BINARY_H_
  3. #include <stdio.h>
  4. #include "opcua.h"
  5. #include "ua_transport_binary.h"
  6. #include "ua_transport_connection.h"
  7. /* Transport Layer Connection */
  8. //struct TL_Connection_T; // forward declaration
  9. //typedef UA_Int32 (*TL_Writer)(struct TL_Connection_T* connection, const UA_ByteString** gather_bufs, UA_Int32 gather_len); // send mutiple buffer concatenated into one msg (zero copy)
  10. /*
  11. typedef struct TL_Connection_T {
  12. UA_Int32 connectionHandle;
  13. UA_UInt32 connectionState;
  14. TL_Buffer localConf;
  15. TL_Buffer remoteConf;
  16. TL_Writer writerCallback;
  17. UA_String localEndpointUrl;
  18. UA_String remoteEndpointUrl;
  19. struct SL_Channel_T* secureChannel;
  20. } TL_Connection;
  21. */
  22. UA_Int32 TL_Send(UA_TL_Connection1 connection, const UA_ByteString** gather_buf, UA_UInt32 gather_len);
  23. UA_Int32 TL_Process(UA_TL_Connection1 connection, const UA_ByteString* msg);
  24. #endif /* OPCUA_TRANSPORT_BINARY_H_ */