CVB.Net 14.0
OpcUaServer Class Reference

OPC/UA server to provide access to NodeBases for clients. More...

Inherits INativeHandle.

Public Member Functions

 OpcUaServer ()
 Starts the OPC/UA on some IP address with the default port 4840.
 
 OpcUaServer (int port)
 Starts the OPC/UA server on some IP address on the given port . More...
 
void Dispose ()
 Disposes the native object wrapped by this object immediately. More...
 
void Start ()
 Starts this Server object.
 
void Stop ()
 Stops this server.
 

Properties

IntPtr Handle [get]
 Native CVB CVOPCNODE handle. More...
 
bool IsDisposed [get]
 Tests whether the native handle has been disposed.
 
ServerState State [get]
 Gets the current state of this object.
 
string Url [get]
 Gets the Server URL that a OpcUaClient needs to open a connection.
 
ServerNamespaceList Namespaces [get]
 Gets the list of all registered namespaces. More...
 
ServerNodes Nodes [get]
 Access to the IServerNodes made available by the server.
 
- Properties inherited from INativeHandle
IntPtr Handle [get]
 The native handle of the object.
 
bool IsDisposed [get]
 Possibility to check whether the object has already been disposed of.
 

Events

NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method. More...
 
- Events inherited from INativeHandle
NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method.
More...
 

Detailed Description

OPC/UA server to provide access to NodeBases for clients.

Constructor & Destructor Documentation

◆ OpcUaServer()

OpcUaServer ( int  port)

Starts the OPC/UA server on some IP address on the given port .

Parameters
portDefault is 4840; use a port higher than 1024 if a custom one is wanted.

Member Function Documentation

◆ Dispose()

void Dispose ( )

Disposes the native object wrapped by this object immediately.

Call this method to release the resources allocated by this node immediately. Remember that after calling Dispose, any subsequent access to references to this image will result in an ObjectDisposedException.

Property Documentation

◆ Handle

IntPtr Handle
get

Native CVB CVOPCNODE handle.

It is normally not necessary to work with this handle in CVB.Net. Note that using this handle in connection with the legacy CVB managed wrappers may actually be disruptive to your application.

Implements INativeHandle.

◆ Namespaces

ServerNamespaceList Namespaces
get

Gets the list of all registered namespaces.

The ServerNamespaceList can also use to register a new namespace via its ServerNamespaceList.Add(string) method.

Event Documentation

◆ ObjectDisposing

NativeHandleEventDelegate ObjectDisposing

Raised when this object is about to be disposed via the IDisposable.Dispose method.

This event is raised right before this object is disposed. The dispose itself cannot be canceled.