forked from anqin/trident
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrpc_client.cc
More file actions
47 lines (35 loc) · 800 Bytes
/
rpc_client.cc
File metadata and controls
47 lines (35 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2014 The Trident Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
//
#include <trident/rpc_client.h>
#include <trident/rpc_client_impl.h>
namespace trident {
RpcClient::RpcClient(const RpcClientOptions& options)
: _impl(new RpcClientImpl(options))
{
_impl->Start();
}
RpcClient::~RpcClient()
{
Shutdown();
}
RpcClientOptions RpcClient::GetOptions()
{
return _impl->GetOptions();
}
void RpcClient::ResetOptions(const RpcClientOptions& options)
{
_impl->ResetOptions(options);
}
int RpcClient::ConnectionCount()
{
return _impl->ConnectionCount();
}
void RpcClient::Shutdown()
{
_impl->Stop();
}
} // namespace trident
/* vim: set ts=4 sw=4 sts=4 tw=100 */