Ignore:
Timestamp:
06/24/10 07:51:15 (14 years ago)
Author:
ogrimm
Message:
Config requests non-blocking if not made from main thread, adapted all servers to GetConfig() returning std::string, workaround for erroneous SERVICE_LIST
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/SkyQualityMonitor/sqm.cpp

    r217 r229  
    3434  // Start server and request configuration data
    3535  EvidenceServer Srv(SERVER_NAME);
    36   char *Address = Srv.GetConfig("address");
    37   unsigned int Port = atoi(Srv.GetConfig("port"));
     36  const char *Address = Srv.GetConfig("address").c_str();
     37  unsigned int Port = atoi(Srv.GetConfig("port").c_str());
    3838   
    3939  // Open socket descriptor
     
    6969  while(!Srv.ExitRequest) {
    7070        // Request measurement period 
    71     Period = atoi(Srv.GetConfig("period"));
     71    Period = atoi(Srv.GetConfig("period").c_str());
    7272
    7373    // Write read command to socket
Note: See TracChangeset for help on using the changeset viewer.