Changeset 14698 for trunk/FACT++/dim/src/examples
- Timestamp:
- 11/25/12 14:01:01 (12 years ago)
- Location:
- trunk/FACT++/dim/src/examples
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/test_client.cxx
r11881 r14698 45 45 } 46 46 public : 47 StrService() : DimInfo("TEST/STRVAL", "not available") {};47 StrService() : DimInfo("TEST/STRVAL",(char *)"not available") {}; 48 48 }; 49 49 -
trunk/FACT++/dim/src/examples/test_server.c
r14575 r14698 64 64 int main(int argc, char **argv) 65 65 { 66 int i, id , *ptr/*, big_ids[20]*/;66 int i, id/*, big_ids[20]*/; 67 67 char aux[80]; 68 68 char name[84]/*, name1[132]*/; … … 97 97 if(new_dns) 98 98 dnsid = dis_add_dns(extra_dns,0); 99 if(dnsid){} 99 100 /* 100 101 buf_sz = dim_get_write_buffer_size(); … … 120 121 t.c = 'a'; 121 122 t.f = (float)4.56; 122 ptr = (int *)&t;123 123 strcpy(t.str,"hello world"); 124 124 -
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.