Changeset 14698 for trunk/FACT++/dim/src/examples/test_server.cxx
- Timestamp:
- 11/25/12 14:01:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/test_server.cxx
r12757 r14698 57 57 public : 58 58 CmndServ() : DimCommand("TEST/CMND","C"), 59 servstr("TEST/STRVAL", "empty") {};59 servstr("TEST/STRVAL",(char *)"empty") {}; 60 60 /* 61 61 void handleIt() … … 88 88 89 89 abc = new DimService("TEST/INTVAL_CONST",(int &)ival); 90 if(abc){} 90 91 } 91 92 … … 95 96 96 97 abc = new DimService("TEST/STRINGVAL_CONST",(char *)s1.c_str()); 98 if(abc){} 97 99 } 98 100 … … 136 138 137 139 DimServer::start("TEST"); 138 extraDns = DimUtil::getEnvVar( "EXTRA_DNS_NODE");140 extraDns = DimUtil::getEnvVar((char *)"EXTRA_DNS_NODE"); 139 141 if(extraDns) 140 newDns = new DimServerDns(extraDns, 0, "new_TEST");142 newDns = new DimServerDns(extraDns, 0, (char *)"new_TEST"); 141 143 142 144 /* … … 163 165 CmndServ cmdsvr; 164 166 165 testServ = new ServWithHandler("MY_NEW_TEST_SERVICE_WITH_HANDLER"); 167 testServ = new ServWithHandler((char *)"MY_NEW_TEST_SERVICE_WITH_HANDLER"); 168 if(testServ){} 166 169 167 170 // farr[0] = 1.2;
Note:
See TracChangeset
for help on using the changeset viewer.