General KERNEL Documentation     End User KERNEL Services  


src/NamingService/NamingService_WaitForServerReadiness.hxx File Reference

#include <string>
#include "SALOME_NamingService.hxx"

Include dependency graph for NamingService_WaitForServerReadiness.hxx:

Go to the source code of this file.

Defines

#define SALOME_WNT_EXPORT

Functions

void NamingService_WaitForServerReadiness (SALOME_NamingService *NS, std::string serverName)


Define Documentation

#define SALOME_WNT_EXPORT
 


Function Documentation

void NamingService_WaitForServerReadiness SALOME_NamingService NS,
string  serverName
 

Wait until a server is registered in naming service.

Parameters:
serverName name of the server to find.
NS SALOME_NamingService object Wait until the given server is ready i.e. is name is found in namingService. Try 40 times, with 500 ms sleep between each try. If Logger is used for traces, it must be ready before this call, because SALOME_NamingService client uses SALOME traces. So, Logger readiness must be checked in Launch script before execution of WaitForServerReadiness.