#include "components/openscreen_platform/tls_client_connection.h"
#include <algorithm>
#include <limits>
#include <sstream>
#include <utility>
#include <vector>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/numerics/safe_conversions.h"
namespace openscreen_platform {
Error;
TlsClientConnection::TlsClientConnection(
openscreen::IPEndpoint local_address,
openscreen::IPEndpoint remote_address,
mojo::ScopedDataPipeConsumerHandle receive_stream,
mojo::ScopedDataPipeProducerHandle send_stream,
mojo::Remote<network::mojom::TCPConnectedSocket> tcp_socket,
mojo::Remote<network::mojom::TLSClientSocket> tls_socket)
: … { … }
TlsClientConnection::~TlsClientConnection() = default;
void TlsClientConnection::SetClient(Client* client) { … }
bool TlsClientConnection::Send(openscreen::ByteView data) { … }
openscreen::IPEndpoint TlsClientConnection::GetRemoteEndpoint() const { … }
void TlsClientConnection::ReceiveMore(MojoResult result,
const mojo::HandleSignalsState& state) { … }
Error::Code TlsClientConnection::ProcessMojoResult(
MojoResult result,
Error::Code error_code_if_fatal) { … }
constexpr size_t TlsClientConnection::kMaxBytesPerRead;
}