#include "remoting/protocol/pseudotcp_channel_factory.h"
#include <utility>
#include "base/functional/bind.h"
#include "net/base/net_errors.h"
#include "remoting/base/constants.h"
#include "remoting/protocol/datagram_channel_factory.h"
#include "remoting/protocol/p2p_datagram_socket.h"
#include "remoting/protocol/pseudotcp_adapter.h"
namespace remoting::protocol {
namespace {
const int kTcpAckDelayMilliseconds = …;
const int kTcpReceiveBufferSize = …;
const int kTcpSendBufferSize = …;
}
PseudoTcpChannelFactory::PseudoTcpChannelFactory(
DatagramChannelFactory* datagram_channel_factory)
: … { … }
PseudoTcpChannelFactory::~PseudoTcpChannelFactory() { … }
void PseudoTcpChannelFactory::CreateChannel(const std::string& name,
ChannelCreatedCallback callback) { … }
void PseudoTcpChannelFactory::CancelChannelCreation(const std::string& name) { … }
void PseudoTcpChannelFactory::OnDatagramChannelCreated(
const std::string& name,
ChannelCreatedCallback callback,
std::unique_ptr<P2PDatagramSocket> datagram_socket) { … }
void PseudoTcpChannelFactory::OnPseudoTcpConnected(
const std::string& name,
ChannelCreatedCallback callback,
int result) { … }
}