gorealis v2 refactor (#5)
* Changing default timeout for start maintenance. * Upgrading dependencies to gorealis v2 and thrift 0.12.0 * Refactored to update to gorealis v2.
This commit is contained in:
parent
ad4dd9606e
commit
6ab5c9334d
1335 changed files with 137431 additions and 61530 deletions
7
vendor/git.apache.org/thrift.git/tutorial/cpp/CppClient.cpp
generated
vendored
7
vendor/git.apache.org/thrift.git/tutorial/cpp/CppClient.cpp
generated
vendored
|
@ -22,6 +22,7 @@
|
|||
#include <thrift/protocol/TBinaryProtocol.h>
|
||||
#include <thrift/transport/TSocket.h>
|
||||
#include <thrift/transport/TTransportUtils.h>
|
||||
#include <thrift/stdcxx.h>
|
||||
|
||||
#include "../gen-cpp/Calculator.h"
|
||||
|
||||
|
@ -34,9 +35,9 @@ using namespace tutorial;
|
|||
using namespace shared;
|
||||
|
||||
int main() {
|
||||
boost::shared_ptr<TTransport> socket(new TSocket("localhost", 9090));
|
||||
boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
|
||||
boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
|
||||
stdcxx::shared_ptr<TTransport> socket(new TSocket("localhost", 9090));
|
||||
stdcxx::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
|
||||
stdcxx::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
|
||||
CalculatorClient client(protocol);
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue