#include "rtc_base/async_udp_socket.h"
#include "absl/types/optional.h"
#include "api/units/time_delta.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/network/received_packet.h"
#include "rtc_base/network/sent_packet.h"
#include "rtc_base/time_utils.h"
#include "system_wrappers/include/field_trial.h"
namespace rtc {
AsyncUDPSocket* AsyncUDPSocket::Create(Socket* socket,
const SocketAddress& bind_address) { … }
AsyncUDPSocket* AsyncUDPSocket::Create(SocketFactory* factory,
const SocketAddress& bind_address) { … }
AsyncUDPSocket::AsyncUDPSocket(Socket* socket) : … { … }
SocketAddress AsyncUDPSocket::GetLocalAddress() const { … }
SocketAddress AsyncUDPSocket::GetRemoteAddress() const { … }
int AsyncUDPSocket::Send(const void* pv,
size_t cb,
const rtc::PacketOptions& options) { … }
int AsyncUDPSocket::SendTo(const void* pv,
size_t cb,
const SocketAddress& addr,
const rtc::PacketOptions& options) { … }
int AsyncUDPSocket::Close() { … }
AsyncUDPSocket::State AsyncUDPSocket::GetState() const { … }
int AsyncUDPSocket::GetOption(Socket::Option opt, int* value) { … }
int AsyncUDPSocket::SetOption(Socket::Option opt, int value) { … }
int AsyncUDPSocket::GetError() const { … }
void AsyncUDPSocket::SetError(int error) { … }
void AsyncUDPSocket::OnReadEvent(Socket* socket) { … }
void AsyncUDPSocket::OnWriteEvent(Socket* socket) { … }
}