00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 #pragma once 00012 00013 #include <opc/ua/protocol/channel.h> 00014 #include <opc/ua/services/services.h> 00015 00016 00017 #include <memory> 00018 00019 namespace OpcUa 00020 { 00021 00022 struct SecureConnectionParams 00023 { 00024 std::string EndpointUrl; 00025 std::string SecurePolicy; 00026 std::vector<uint8_t> SenderCertificate; 00027 std::vector<uint8_t> ReceiverCertificateThumbPrint; 00028 uint32_t SecureChannelId; 00029 00030 SecureConnectionParams() 00031 : SecureChannelId(0) 00032 { 00033 } 00034 }; 00035 00038 Services::SharedPtr CreateBinaryClient(IOChannel::SharedPtr channel, const SecureConnectionParams& params, bool debug = false); 00039 Services::SharedPtr CreateBinaryClient(const std::string& endpointUrl, bool debug = false); 00040 00041 } // namespace OpcUa