Sha256: 1f5ff8fabb912dcf8a49c0a52a2aa51bf370f1163fa7706fc154e67f84e9564c
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 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{}; 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
4 entries across 4 versions & 1 rubygems