Changeset 4951 in ntrip


Ignore:
Timestamp:
Feb 23, 2013, 5:17:35 PM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/thrift/test2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/thrift/test2/client.cpp

    r4944 r4951  
    1616 public:
    1717  myService() {}
    18   void answer(std::string& answ, const std::string& question) {
     18  void answer(const std::string& question) {
    1919    cout << "Server asks: " << question << endl;
    20     answ = "I am well, thanks.";
    2120  }
    2221
  • trunk/GnssCenter/thrift/test2/myservice.thrift

    r4942 r4951  
    11
    22service myService {
    3    string answer(1:string question)
     3  oneway void answer(1:string question)
    44}
  • trunk/GnssCenter/thrift/test2/server.cpp

    r4950 r4951  
    2222 public:
    2323  myService() {}
    24   void answer(std::string& answ, const std::string& question) {
     24  void answer(const std::string& question) {
    2525    // implemented on the client-side only
    2626  }
     
    9191    cout << "sleep ..." << endl;
    9292    if (CONNECTION) {
    93       string answ;
    9493      cout << "CONNECTION " << endl;
    95       CONNECTION->_client->answer(answ, "How are you?");
     94      CONNECTION->_client->answer("How are you?");
    9695    }
    9796    sleep(1);
Note: See TracChangeset for help on using the changeset viewer.