#include "components/openscreen_platform/message_port_tls_connection.h"
#include <string_view>
#include "third_party/openscreen/src/platform/api/task_runner.h"
#include "third_party/openscreen/src/platform/base/error.h"
namespace openscreen_platform {
MessagePortTlsConnection::MessagePortTlsConnection(
std::unique_ptr<cast_api_bindings::MessagePort> message_port,
openscreen::TaskRunner& task_runner)
: … { … }
MessagePortTlsConnection::~MessagePortTlsConnection() = default;
void MessagePortTlsConnection::SetClient(TlsConnection::Client* client) { … }
bool MessagePortTlsConnection::Send(openscreen::ByteView data) { … }
openscreen::IPEndpoint MessagePortTlsConnection::GetRemoteEndpoint() const { … }
bool MessagePortTlsConnection::OnMessage(
std::string_view message,
std::vector<std::unique_ptr<cast_api_bindings::MessagePort>> ports) { … }
void MessagePortTlsConnection::OnPipeError() { … }
}