#include <cta_ua_server.h>
CTA_UA::Server::Server |
( |
| ) |
|
CTA_UA::Server::~Server |
( |
| ) |
|
ServerManager * CTA_UA::Server::getServerManager |
( |
| ) |
|
void CTA_UA::Server::getUrl |
( |
std::string * |
sUrl | ) |
|
Sets the callback interface for the server object. This callback interface needs to be implemented if the application wants to implement user authentication.
- Paramètres
-
pOpcServerCallback | Interface pointer of the callback interface. |
- Renvoie
- Success code for the operation. Return 0 if the call succedded and -1 if the call failed. This call fails if it is called after starting the server with the method start.
int CTA_UA::Server::setServerConfig |
( |
const std::string & |
configurationFile, |
|
|
const std::string & |
applicationPath |
|
) |
| |
int CTA_UA::Server::setServerConfig |
( |
ServerConfig * |
pServerConfig | ) |
|
Sets the server configuration by passing a server configuration object. One of the overloaded methods needs to be called to give the server a valid configuration.
This version allows to pass in a ServerConfig object with a user specific implementation.
- Paramètres
-
pServerConfig | Interface pointer of the object implementing the ServerConfig interface. |
- Renvoie
- Success code for the operation. Return 0 if the call succedded and -1 if the call failed. This call fails if it is called after starting the server with the method start.
int CTA_UA::Server::start |
( |
| ) |
|
Starts the OPC server Initializes and starts up all NodeManagers and SDK modules. It is possible to add more NodeManagers after the server is started.
- Renvoie
- Success code for the operation. Return 0 if the server start succedded and -1 if the server start failed.
int CTA_UA::Server::stop |
( |
OpcUa_Int32 |
secondsTillShutdown, |
|
|
const UaLocalizedText & |
shutdownReason |
|
) |
| |
Stopps the OPC server Shutdown and deletes all SDK modules and NodeManagers.
- Paramètres
-
secondsTillShutdown | Seconds till shutdown of the server if clients are connected. |
shutdownReason | Reason for the shutdown. |
- Renvoie
- Success code for the operation. Return 0 if the server stop succedded and -1 if the server stop failed.
La documentation de cette classe a été générée à partir des fichiers suivants :
- D:/travail/OPCUA/trunk/sources_cpp/server_CTA/genericServerLib/cta_ua/cta_ua_server.h
- D:/travail/OPCUA/trunk/sources_cpp/server_CTA/genericServerLib/cta_ua/cta_ua_server.cpp