chromium/remoting/protocol/pseudotcp_channel_factory.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Value is chosen to balance the extra latency against the reduced load due to
// ACK traffic.
const int kTcpAckDelayMilliseconds =;

// Values for the TCP send and receive buffer size. This should be tuned to
// accommodate high latency network but not backlog the decoding pipeline.
const int kTcpReceiveBufferSize =;
const int kTcpSendBufferSize =;

}  // namespace

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) {}

}  // namespace remoting::protocol