#include "quiche/quic/tools/quic_client_default_network_helper.h"
#include <limits>
#include <memory>
#include <string>
#include <utility>
#include "absl/cleanup/cleanup.h"
#include "quiche/quic/core/io/quic_event_loop.h"
#include "quiche/quic/core/quic_default_packet_writer.h"
#include "quiche/quic/core/quic_packets.h"
#include "quiche/quic/core/quic_types.h"
#include "quiche/quic/core/quic_udp_socket.h"
#include "quiche/quic/platform/api/quic_logging.h"
#include "quiche/common/platform/api/quiche_logging.h"
#include "quiche/common/platform/api/quiche_system_event_loop.h"
namespace quic {
std::unique_ptr<QuicPacketWriter> CreateDefaultWriterForEventLoop(
SocketFd fd, QuicEventLoop* event_loop) { … }
QuicClientDefaultNetworkHelper::QuicClientDefaultNetworkHelper(
QuicEventLoop* event_loop, QuicClientBase* client)
: … { … }
QuicClientDefaultNetworkHelper::~QuicClientDefaultNetworkHelper() { … }
bool QuicClientDefaultNetworkHelper::CreateUDPSocketAndBind(
QuicSocketAddress server_address, QuicIpAddress bind_to_address,
int bind_to_port) { … }
void QuicClientDefaultNetworkHelper::CleanUpUDPSocket(SocketFd fd) { … }
void QuicClientDefaultNetworkHelper::CleanUpAllUDPSockets() { … }
void QuicClientDefaultNetworkHelper::CleanUpUDPSocketImpl(SocketFd fd) { … }
void QuicClientDefaultNetworkHelper::RunEventLoop() { … }
void QuicClientDefaultNetworkHelper::OnSocketEvent(
QuicEventLoop* , QuicUdpSocketFd fd,
QuicSocketEventMask events) { … }
QuicPacketWriter* QuicClientDefaultNetworkHelper::CreateQuicPacketWriter() { … }
void QuicClientDefaultNetworkHelper::SetClientPort(int port) { … }
QuicSocketAddress QuicClientDefaultNetworkHelper::GetLatestClientAddress()
const { … }
SocketFd QuicClientDefaultNetworkHelper::GetLatestFD() const { … }
void QuicClientDefaultNetworkHelper::ProcessPacket(
const QuicSocketAddress& self_address,
const QuicSocketAddress& peer_address, const QuicReceivedPacket& packet) { … }
SocketFd QuicClientDefaultNetworkHelper::CreateUDPSocket(
QuicSocketAddress server_address, bool* overflow_supported) { … }
bool QuicClientDefaultNetworkHelper::BindInterfaceNameIfNeeded(SocketFd fd) { … }
}