#include "quiche/quic/core/quic_default_packet_writer.h"
#include <optional>
#include "quiche/quic/core/quic_udp_socket.h"
namespace quic {
QuicDefaultPacketWriter::QuicDefaultPacketWriter(SocketFd fd)
: … { … }
QuicDefaultPacketWriter::~QuicDefaultPacketWriter() = default;
WriteResult QuicDefaultPacketWriter::WritePacket(
const char* buffer, size_t buf_len, const QuicIpAddress& self_address,
const QuicSocketAddress& peer_address, PerPacketOptions* ,
const QuicPacketWriterParams& params) { … }
bool QuicDefaultPacketWriter::IsWriteBlocked() const { … }
void QuicDefaultPacketWriter::SetWritable() { … }
std::optional<int> QuicDefaultPacketWriter::MessageTooBigErrorCode() const { … }
QuicByteCount QuicDefaultPacketWriter::GetMaxPacketSize(
const QuicSocketAddress& ) const { … }
bool QuicDefaultPacketWriter::SupportsReleaseTime() const { … }
bool QuicDefaultPacketWriter::IsBatchMode() const { … }
QuicPacketBuffer QuicDefaultPacketWriter::GetNextWriteLocation(
const QuicIpAddress& ,
const QuicSocketAddress& ) { … }
WriteResult QuicDefaultPacketWriter::Flush() { … }
void QuicDefaultPacketWriter::set_write_blocked(bool is_blocked) { … }
}