#include "rtc_base/proxy_server.h"
#include <stddef.h>
#include <memory>
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/socket_factory.h"
namespace rtc {
ProxyServer::ProxyServer(SocketFactory* int_factory,
const SocketAddress& int_addr,
SocketFactory* ext_factory,
const SocketAddress& ext_ip)
: … { … }
ProxyServer::~ProxyServer() = default;
SocketAddress ProxyServer::GetServerAddress() { … }
void ProxyServer::OnAcceptEvent(Socket* socket) { … }
ProxyBinding::ProxyBinding(AsyncProxyServerSocket* int_socket,
Socket* ext_socket)
: … { … }
ProxyBinding::~ProxyBinding() = default;
void ProxyBinding::OnConnectRequest(AsyncProxyServerSocket* socket,
const SocketAddress& addr) { … }
void ProxyBinding::OnInternalRead(Socket* socket) { … }
void ProxyBinding::OnInternalWrite(Socket* socket) { … }
void ProxyBinding::OnInternalClose(Socket* socket, int err) { … }
void ProxyBinding::OnExternalConnect(Socket* socket) { … }
void ProxyBinding::OnExternalRead(Socket* socket) { … }
void ProxyBinding::OnExternalWrite(Socket* socket) { … }
void ProxyBinding::OnExternalClose(Socket* socket, int err) { … }
void ProxyBinding::Read(Socket* socket, FifoBuffer* buffer) { … }
void ProxyBinding::Write(Socket* socket, FifoBuffer* buffer) { … }
void ProxyBinding::Destroy() { … }
}