chromium/third_party/webrtc/rtc_base/socket_adapters.cc

/*
 *  Copyright 2004 The WebRTC Project Authors. All rights reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#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) {}

///////////////////////////////////////////////////////////////////////////////

// This is a SSL v2 CLIENT_HELLO message.
// TODO: Should this have a session id? The response doesn't have a
// certificate, so the hello should have a session id.
static const uint8_t kSslClientHello[] =;

// static
ArrayView<const uint8_t> AsyncSSLSocket::SslClientHello() {}

// This is a TLSv1 SERVER_HELLO message.
static const uint8_t kSslServerHello[] =;

// static
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) {}

}  // namespace rtc