Sha256: 3e8af61e9a49b3e4c70479c7886beb6cac0e9e673a0d87d168106b46e3ef05c4
Contents?: true
Size: 1.16 KB
Versions: 16
Compression:
Stored size: 1.16 KB
Contents
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once namespace couchbase::protocol { struct cmd_info { asio::ip::tcp::endpoint local_endpoint{}; asio::ip::tcp::endpoint remote_endpoint{}; double server_duration_us{ 0 }; template<class AsyncStream> void extract_from_stream(AsyncStream& stream) { std::error_code err; local_endpoint = stream.local_endpoint(err); remote_endpoint = stream.remote_endpoint(err); (void)err; } }; } // namespace couchbase::protocol
Version data entries
16 entries across 16 versions & 1 rubygems