Changeset 18058 for trunk/FACT++/dim/src/examples/rpc_client.cxx
- Timestamp:
- 01/03/15 18:26:23 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/rpc_client.cxx
r14575 r18058 2 2 #include <iostream> 3 3 using namespace std; 4 #include <stdio.h> 4 5 5 6 class Rpc : public DimRpcInfo … … 10 11 cout << "Callback RPC Received : " << getInt() << endl; 11 12 } 12 Rpc(c har *name) : DimRpcInfo(name, 1, -1) {};13 Rpc(const char *name) : DimRpcInfo(name, 1, -1) {}; 13 14 }; 14 15 … … 31 32 cout << val->str1 << " " << val->str2 << " " << val->int1 << endl; 32 33 } 33 RpcStruct(c har *name) : DimRpcInfo(name,"dead") {};34 RpcStruct(const char *name) : DimRpcInfo(name, (char *)"dead") {}; 34 35 }; 35 36 … … 41 42 int out, in; 42 43 43 sprintf(name,"TESTRPC% d/INT",(dim_long)tag);44 sprintf(name,"TESTRPC%ld/INT",(dim_long)tag); 44 45 myRpc = new DimRpcInfo(name, 10, -1); 45 46 // myRpc = new Rpc(name); … … 65 66 Rpc *myRpc; 66 67 char name[64]; 67 int out , in;68 int out; 68 69 69 70 sprintf(name,"TESTRPC/INT");
Note:
See TracChangeset
for help on using the changeset viewer.