|
open62541pp 0.19.0
C++ wrapper of open62541
|
#include <server.hpp>
Server configuration.
Definition at line 43 of file server.hpp.
Public Member Functions | |
| ServerConfig () | |
| ServerConfig (uint16_t port, const ByteString &certificate={}) | |
| ServerConfig (uint16_t port, const ByteString &certificate, const ByteString &privateKey, Span< const ByteString > trustList, Span< const ByteString > issuerList, Span< const ByteString > revocationList={}) | |
| ServerConfig (UA_ServerConfig &&native) | |
| ServerConfig (const ServerConfig &)=delete | |
| ServerConfig (ServerConfig &&) noexcept=default | |
| ServerConfig & | operator= (const ServerConfig &)=delete |
| ServerConfig & | operator= (ServerConfig &&) noexcept=default |
| ~ServerConfig () noexcept=default | |
| void | setLogger (LogFunction func) |
| void | setBuildInfo (BuildInfo buildInfo) |
| void | setApplicationUri (std::string_view uri) |
| void | setProductUri (std::string_view uri) |
| void | setApplicationName (std::string_view name) |
| void | addCustomDataTypes (Span< const DataType > types) |
| void | setAccessControl (AccessControlBase &accessControl) |
| void | setAccessControl (std::unique_ptr< AccessControlBase > &&accessControl) |
Public Member Functions inherited from opcua::Wrapper< UA_ServerConfig > | |
| constexpr | Wrapper () noexcept=default |
| constexpr | Wrapper (const Wrapper &other) |
| constexpr | Wrapper (const UA_ServerConfig &native) |
| constexpr | Wrapper (Wrapper &&other) noexcept |
| constexpr | Wrapper (UA_ServerConfig &&native) noexcept |
| ~Wrapper () noexcept=default | |
| constexpr Wrapper & | operator= (const Wrapper &other) |
| constexpr Wrapper & | operator= (const UA_ServerConfig &native) |
| constexpr Wrapper & | operator= (Wrapper &&other) noexcept |
| constexpr Wrapper & | operator= (UA_ServerConfig &&native) noexcept |
| constexpr | operator UA_ServerConfig & () noexcept |
| constexpr | operator const UA_ServerConfig & () const noexcept |
| constexpr UA_ServerConfig * | operator-> () noexcept |
| constexpr const UA_ServerConfig * | operator-> () const noexcept |
| constexpr UA_ServerConfig * | handle () noexcept |
| constexpr const UA_ServerConfig * | handle () const noexcept |
| constexpr void | swap (Wrapper &other) noexcept |
| constexpr void | swap (UA_ServerConfig &native) noexcept |
Additional Inherited Members | |
Public Types inherited from opcua::Wrapper< UA_ServerConfig > | |
| using | NativeType = UA_ServerConfig |
| using | HandlerType = TypeHandler< UA_ServerConfig > |
Protected Member Functions inherited from opcua::Wrapper< UA_ServerConfig > | |
| constexpr const UA_ServerConfig & | native () const noexcept |
| constexpr UA_ServerConfig & | native () noexcept |
| constexpr void | clear () noexcept |
Related Symbols inherited from opcua::Wrapper< UA_ServerConfig > | |
| constexpr UA_ServerConfig * | asWrapper (typename T::NativeType *native) noexcept |
| constexpr const UA_ServerConfig * | asWrapper (const typename T::NativeType *native) noexcept |
| constexpr UA_ServerConfig & | asWrapper (typename T::NativeType &native) noexcept |
| constexpr const UA_ServerConfig & | asWrapper (const typename T::NativeType &native) noexcept |
| constexpr T::NativeType * | asNative (UA_ServerConfig *wrapper) noexcept |
| constexpr const T::NativeType * | asNative (const UA_ServerConfig *wrapper) noexcept |
| constexpr T::NativeType & | asNative (UA_ServerConfig &wrapper) noexcept |
| constexpr const T::NativeType & | asNative (const UA_ServerConfig &wrapper) noexcept |
| opcua::ServerConfig::ServerConfig | ( | ) |
|
explicit |
Create server config with minimal configuration.
Security policies:
| port | Port number |
| certificate | Optional X.509 v3 certificate in DER encoded format |
| opcua::ServerConfig::ServerConfig | ( | uint16_t | port, |
| const ByteString & | certificate, | ||
| const ByteString & | privateKey, | ||
| Span< const ByteString > | trustList, | ||
| Span< const ByteString > | issuerList, | ||
| Span< const ByteString > | revocationList = {} |
||
| ) |
Create server config with encryption enabled (PKI).
Security policies:
| port | Port number |
| certificate | X.509 v3 certificate in DER encoded format |
| privateKey | Private key in PEM encoded format |
| trustList | List of trusted certificates in DER encoded format |
| issuerList | List of issuer certificates (i.e. CAs) in DER encoded format |
| revocationList | Certificate revocation lists (CRL) in DER encoded format |
|
inlineexplicit |
Definition at line 93 of file server.hpp.
|
delete |
|
defaultnoexcept |
|
defaultnoexcept |
Add custom data types.
All data types provided are automatically considered for decoding of received messages.
Referenced by opcua::Server::setCustomDataTypes().
|
delete |
|
defaultnoexcept |
| void opcua::ServerConfig::setAccessControl | ( | AccessControlBase & | accessControl | ) |
Set custom access control.
| void opcua::ServerConfig::setAccessControl | ( | std::unique_ptr< AccessControlBase > && | accessControl | ) |
Set custom access control (transfer ownership to Server).
| void opcua::ServerConfig::setApplicationName | ( | std::string_view | name | ) |
Set application name, default: open62541-based OPC UA Application.
| void opcua::ServerConfig::setApplicationUri | ( | std::string_view | uri | ) |
Set application URI, default: urn:open62541.server.application.
| void opcua::ServerConfig::setBuildInfo | ( | BuildInfo | buildInfo | ) |
| void opcua::ServerConfig::setLogger | ( | LogFunction | func | ) |
| void opcua::ServerConfig::setProductUri | ( | std::string_view | uri | ) |
Set product URI, default: http://open62541.org.