#include "remoting/protocol/channel_socket_adapter.h"
#include <limits>
#include "base/functional/callback.h"
#include "base/logging.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
namespace remoting::protocol {
TransportChannelSocketAdapter::TransportChannelSocketAdapter(
cricket::IceTransportInternal* ice_transport)
: … { … }
TransportChannelSocketAdapter::~TransportChannelSocketAdapter() { … }
void TransportChannelSocketAdapter::SetOnDestroyedCallback(
base::OnceClosure callback) { … }
int TransportChannelSocketAdapter::Recv(
const scoped_refptr<net::IOBuffer>& buf,
int buffer_size,
const net::CompletionRepeatingCallback& callback) { … }
int TransportChannelSocketAdapter::Send(
const scoped_refptr<net::IOBuffer>& buffer,
int buffer_size,
const net::CompletionRepeatingCallback& callback) { … }
void TransportChannelSocketAdapter::Close(int error_code) { … }
void TransportChannelSocketAdapter::OnNewPacket(
rtc::PacketTransportInternal* transport,
const rtc::ReceivedPacket& packet) { … }
void TransportChannelSocketAdapter::OnWritableState(
rtc::PacketTransportInternal* transport) { … }
void TransportChannelSocketAdapter::OnChannelDestroyed(
cricket::IceTransportInternal* channel) { … }
}