Ignore:
Timestamp:
10/29/15 19:53:37 (9 years ago)
Author:
tbretz
Message:
Updated to v20r15
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/examples/test_server.cxx

    r15282 r18349  
    142142                newDns = new DimServerDns(extraDns, 0, (char *)"new_TEST");
    143143
    144 /*
    145         int i, arr[15000];
    146         DimService *servp;
    147         DimCommand *cmndp;
    148         char str[132];
    149 */
     144//      int i, arr[15000];
     145//      DimService *servp;
     146//      DimCommand *cmndp;
     147//      char str[132];
     148
    150149//      float farr[4];
    151150//      DimService *farrp;
     
    173172
    174173
    175 /*
    176174//      DimServer::autoStartOff();
    177         DimServer::start("TEST");
    178 
    179         for(i = 0; i < 15000; i++)
    180         {
    181                 arr[i] = i;
    182                 sprintf(str,"ServiceManyTest/%05d",i);
    183                 servp = new DimService(str,arr[i]);
    184                 servp->setQuality(1);
    185                 servp->updateService(arr[i]);
    186175//      DimServer::start("TEST");
    187                 sprintf(str,"CommandManyTest/%05d",i);
    188                 cmndp = new CmndServMany(str);
    189 //      DimServer::start("TEST");
    190         }
    191 */
     176
     177//      for(i = 0; i < 15000; i++)
     178//      {
     179//              arr[i] = i;
     180//              sprintf(str,"ServiceManyTest/%05d",i);
     181//              servp = new DimService(str,arr[i]);
     182//              servp->setQuality(1);
     183//              servp->updateService(arr[i]);
     184////    DimServer::start("TEST");
     185//              sprintf(str,"CommandManyTest/%05d",i);
     186//              cmndp = new CmndServMany(str);
     187////    DimServer::start("TEST");
     188//      }
     189
    192190        while(1)
    193191        {
    194192                sleep(5);
    195 /*
    196                 while(cmdsvr.hasNext())
    197                 {
    198                         cmdsvr.getNext();
    199                         cmdsvr.handleIt();
    200                 }
    201 */
     193
     194//              while(cmdsvr.hasNext())
     195//              {
     196//                      cmdsvr.getNext();
     197//                      cmdsvr.handleIt();
     198//              }
     199
    202200                s1 = "hello1";
    203201                if(!boolval)
     
    217215}
    218216
     217/*
     218int main()
     219{
     220DimService *servint, *newServint;
     221int ival = 0;
     222
     223DimServer::start("TEST");
     224servint = new DimService("TEST/INTVAL",ival);
     225sleep(20);
     226DimServer::stop();
     227sleep(1);
     228DimServer::start("TESTOTHER");
     229newServint = new DimService("TESTOTHER/INTVAL",ival);
     230sleep(20);
     231DimServer::stop();
     232}
     233*/
Note: See TracChangeset for help on using the changeset viewer.