rpc_connection.cc
1 // Copyright 2018, Beeri 15. All rights reserved.
2 // Author: Roman Gershman (romange@gmail.com)
3 //
4 #include "util/rpc/rpc_connection.h"
5 
6 #include "base/logging.h"
7 
8 #include "util/rpc/impl/rpc_conn_handler.h"
9 
10 namespace util {
11 namespace rpc {
12 
13 ConnectionHandler* ServiceInterface::NewConnection(IoContext& context) {
14  ConnectionBridge* bridge = CreateConnectionBridge();
15  return new RpcConnectionHandler(bridge, &context);
16 }
17 
18 } // namespace rpc
19 } // namespace util