OPCUAServerEndPoint Class
Module: opcua.server
OPCUAServerEndPoint a Server EndPoint. A sever end point is listening to one port
Constructor
OPCUAServerEndPoint
(
-
options
Parameters:
-
options
Object-
port
Numberthe tcp port
-
certificateChain
Bufferthe DER certificate chain
-
privateKey
StringPEM 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
-
serverInfo
ApplicationDescription-
[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.port
Object -
options.serverCertificate
Object -
options.securityMode
Object -
options.securityPolicy
Object -
options.securityLevel
Number -
options.server.applicationUri
String -
options.server.productUri
String -
options.server.applicationName
LocalizedText// {text: "SampleServer", locale: null},
-
options.server.applicationType
ApplicationType -
options.server.gatewayServerUri
String -
options.server.discoveryProfileUri
String -
options.server.discoveryUrls
String -
[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:
-
self
Object -
establish_connection
Object
_registerChannel
(
private
-
channel
Parameters:
-
channel
Object
_unregisterChannel
(
private
-
channel
Parameters:
-
channel
Object
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:
-
securityMode
Object -
securityPolicy
Object
Returns:
EndpointDescription | Null:
endpoint_description
getPrivateKey
()
Buffer
Returns:
Buffer:
the privateKey
listen
()
async
matching_endpoint
(
Boolean
-
endpoint
-
securityMode
-
securityPolicy
Parameters:
-
endpoint
Object -
securityMode
Object -
securityPolicy
Object
Returns:
Boolean:
shutdown
(
async
-
callback
Parameters:
-
callback
Function
shutdown_channel
(
-
channel
-
inner_callback
Parameters:
-
channel
Object -
inner_callback
Object
start
(
async
-
callback
Parameters:
-
callback
Function
Properties
currentChannelCount
Number
The number of active channel on this end point.
Events
closeChannel
Event Payload:
-
channel
Object
newChannel
Event Payload:
-
channel
Object