// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include #include #include #include #include #include using namespace std; using frtstream::FrtClientStream; using frtstream::Method; using frtstream::InvokationException; const string connectionSpec = "tcp/test-tonyv:9997"; class TestApp : public FastOS_Application { public: int Main() { FrtClientStream s(connectionSpec); std::vector vec; vec.push_back("Hello"); vec.push_back("world"); std::set codeSet; codeSet.insert("abc"); codeSet.insert("def"); std::vector doubleVec; doubleVec.push_back(99.98); doubleVec.push_back(98.97); std::vector floatVec; floatVec.push_back(99.98); floatVec.push_back(98.97); uint8_t i1 = 1; int8_t i2 = 2; uint16_t i3 = 1; int16_t i4 = 2; uint32_t i5 = 1; int32_t i6 = 2; uint64_t i7 = 1; int64_t i8 = 2; float f1 = 3.14; double d1 = 123.456; try { s <> res >>vec >>codeSet >>doubleVec >>floatVec >>i1 >>f1 >>d1 >>i1 >>i2 >>i3 >>i4 >>i5 >>i6 >>i7 >>i8; cout <<"Result = " <