#if defined(_MSC_VER) && _MSC_VER < 1300
#pragma warning(disable : 4786)
#endif
#include "rtc_base/socket_adapters.h"
#include <algorithm>
#include "absl/strings/match.h"
#include "absl/strings/string_view.h"
#include "rtc_base/buffer.h"
#include "rtc_base/byte_buffer.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/strings/string_builder.h"
#include "rtc_base/zero_memory.h"
namespace rtc {
BufferedReadAdapter::BufferedReadAdapter(Socket* socket, size_t size)
: … { … }
BufferedReadAdapter::~BufferedReadAdapter() { … }
int BufferedReadAdapter::Send(const void* pv, size_t cb) { … }
int BufferedReadAdapter::Recv(void* pv, size_t cb, int64_t* timestamp) { … }
void BufferedReadAdapter::BufferInput(bool on) { … }
void BufferedReadAdapter::OnReadEvent(Socket* socket) { … }
static const uint8_t kSslClientHello[] = …;
ArrayView<const uint8_t> AsyncSSLSocket::SslClientHello() { … }
static const uint8_t kSslServerHello[] = …;
ArrayView<const uint8_t> AsyncSSLSocket::SslServerHello() { … }
AsyncSSLSocket::AsyncSSLSocket(Socket* socket)
: … { … }
int AsyncSSLSocket::Connect(const SocketAddress& addr) { … }
void AsyncSSLSocket::OnConnectEvent(Socket* socket) { … }
void AsyncSSLSocket::ProcessInput(char* data, size_t* len) { … }
}