summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket.cc
blob: a3f204a726622d38c830a585b60b3e0aaa548437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/socket/client_socket.h"

#include "base/logging.h"
#include "net/base/net_errors.h"

namespace net {

// Identical to BSD socket call getpeername().
// Needed by ssl_client_socket_nss and ssl_client_socket_mac.
int ClientSocket::GetPeerName(struct sockaddr* name, socklen_t* namelen) {
  // Default implementation just permits some unit tests to link.
  NOTREACHED();
  return ERR_UNEXPECTED;
}

}  // namespace net