OPCUAServerEndPoint Class
Module: opcua.server
OPCUAServerEndPoint a Server EndPoint. A sever end point is listening to one port
Constructor
OPCUAServerEndPoint
(
-
options
Parameters:
-
optionsObject-
portNumberthe tcp port
-
certificateChainBufferthe DER certificate chain
-
privateKeyStringPEM string of the private key
-
[defaultSecureTokenLifetime=600000]Number optionalthe default secure token lifetime
-
[timeout=30000]Number optionalthe timeout for the TCP HEL/ACK transaction (in ms)
-
[maxConnections= 20]Number optionalthe maximum number of connection allowed on the TCP server socket
-
serverInfoApplicationDescription-
[applicationUri]String optional -
[productUri]String optional -
[applicationName]LocalizedText optional -
[gatewayServerUri]String | Null optional -
[discoveryProfileUri]String | Null optional -
[discoveryUrls]String optional
-
-
objectFactory
-
Item Index
Methods
- _makeEndpointDescription
- _prevent_DOS_Attack
- _registerChannel
- _unregisterChannel
- endpointDescriptions
- getCertificate Returns the X509 DER form of the server certificate
- getCertificateChain Returns the X509 DER form of the server certificate
- getEndpointDescription
- getPrivateKey
- listen
- matching_endpoint
- shutdown
- shutdown_channel
- start
Properties
Events
Methods
_makeEndpointDescription
(
EndpointDescription
private
-
options.port -
options.serverCertificate -
options.securityMode -
options.securityPolicy -
options.securityLevel -
options.server.applicationUri -
options.server.productUri -
options.server.applicationName -
options.server.applicationType -
options.server.gatewayServerUri -
options.server.discoveryProfileUri -
options.server.discoveryUrls -
[options.resourcePath=""] -
[options.hostname=get_fully_qualified_domain_name()]
Parameters:
-
options.portObject -
options.serverCertificateObject -
options.securityModeObject -
options.securityPolicyObject -
options.securityLevelNumber -
options.server.applicationUriString -
options.server.productUriString -
options.server.applicationNameLocalizedText// {text: "SampleServer", locale: null},
-
options.server.applicationTypeApplicationType -
options.server.gatewayServerUriString -
options.server.discoveryProfileUriString -
options.server.discoveryUrlsString -
[options.resourcePath=""]String optionalresource Path is a string added at the end of the url such as "/UA/Server"
-
[options.hostname=get_fully_qualified_domain_name()]String optionaldefault hostname
Returns:
_prevent_DOS_Attack
(
private
async
-
self -
establish_connection
Parameters:
-
selfObject -
establish_connectionObject
_registerChannel
(
private
-
channel
Parameters:
-
channelObject
_unregisterChannel
(
private
-
channel
Parameters:
-
channelObject
endpointDescriptions
()
Array
returns the list of end point descriptions.
Returns:
Array:
getCertificate
Returns the X509 DER form of the server certificate
()
Buffer
Returns:
Buffer:
getCertificateChain
Returns the X509 DER form of the server certificate
()
Buffer
Returns:
Buffer:
getEndpointDescription
(
EndpointDescription | Null
-
securityMode -
securityPolicy
Parameters:
-
securityModeObject -
securityPolicyObject
Returns:
EndpointDescription | Null:
endpoint_description
getPrivateKey
()
Buffer
Returns:
Buffer:
the privateKey
listen
()
async
matching_endpoint
(
Boolean
-
endpoint -
securityMode -
securityPolicy
Parameters:
-
endpointObject -
securityModeObject -
securityPolicyObject
Returns:
Boolean:
shutdown
(
async
-
callback
Parameters:
-
callbackFunction
shutdown_channel
(
-
channel -
inner_callback
Parameters:
-
channelObject -
inner_callbackObject
start
(
async
-
callback
Parameters:
-
callbackFunction
Properties
currentChannelCount
Number
The number of active channel on this end point.
Events
closeChannel
Event Payload:
-
channelObject
newChannel
Event Payload:
-
channelObject
The NodeOPCUA API