Login  •  Register


createNodeManagerNS1

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

createNodeManagerNS1

Postby vinothtcecse » 11 May 2019, 19:07

Hi,

I would like inherit the class NodeManagerNS1 in my Server application.

Code: Select all
class MyNodeManagerNS1: public NodeManagerNS1
{
....
....
};


Only way to create the instance of MyNodeManagerNS1 is to override the method from ServerManager "ServerManager::createNodeManagerNS1"

Code: Select all
class MyServerManager: public ServerManager
{
....
....
   virtual NodeManager* createNodeManagerNS1(..)
   {
        return new [b]MyNodeManagerNS1[/b](..);
   }
};


But there is no way to send the instance of MyServerManager to CoreModule::initialize().

Please suggest me how to send the instance of MyServerManager to CoreModule.

Regards,
Vinoth
vinothtcecse
Newbie
Newbie
 
Posts: 2
Joined: 17 Apr 2019, 15:41

Re: createNodeManagerNS1

Postby vinothtcecse » 12 May 2019, 10:06

Hi Team,

I saw the server_hello_world sample program. In OpcServerMain () method, the instance of UaServerApplication is created using

Code: Select all
OpcServer* pServer = new OpcServer;


from the pServer i am able to get the coremodule. I guess, CoreModule is created and initialized in the start method.

Code: Select all
pServer->Start()


There is no way to send "MyServerManager" to the pServer->Start() method.

Please let me know how I can pass my own ServerManager (MyServerManager)

Regards,
Vinoth
vinothtcecse
Newbie
Newbie
 
Posts: 2
Joined: 17 Apr 2019, 15:41


Return to C++ based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests