#include "net/tools/quic/quic_simple_server_packet_writer.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/metrics/histogram_functions.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/quic/address_utils.h"
#include "net/socket/udp_server_socket.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_dispatcher.h"
namespace net {
QuicSimpleServerPacketWriter::QuicSimpleServerPacketWriter(
UDPServerSocket* socket,
quic::QuicDispatcher* dispatcher)
: … { … }
QuicSimpleServerPacketWriter::~QuicSimpleServerPacketWriter() = default;
void QuicSimpleServerPacketWriter::OnWriteComplete(int rv) { … }
bool QuicSimpleServerPacketWriter::IsWriteBlocked() const { … }
void QuicSimpleServerPacketWriter::SetWritable() { … }
std::optional<int> QuicSimpleServerPacketWriter::MessageTooBigErrorCode()
const { … }
quic::WriteResult QuicSimpleServerPacketWriter::WritePacket(
const char* buffer,
size_t buf_len,
const quic::QuicIpAddress& self_address,
const quic::QuicSocketAddress& peer_address,
quic::PerPacketOptions* options,
const quic::QuicPacketWriterParams& params) { … }
quic::QuicByteCount QuicSimpleServerPacketWriter::GetMaxPacketSize(
const quic::QuicSocketAddress& peer_address) const { … }
bool QuicSimpleServerPacketWriter::SupportsReleaseTime() const { … }
bool QuicSimpleServerPacketWriter::IsBatchMode() const { … }
bool QuicSimpleServerPacketWriter::SupportsEcn() const { … }
quic::QuicPacketBuffer QuicSimpleServerPacketWriter::GetNextWriteLocation(
const quic::QuicIpAddress& self_address,
const quic::QuicSocketAddress& peer_address) { … }
quic::WriteResult QuicSimpleServerPacketWriter::Flush() { … }
}