summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/quiche/quic/tools/quic_name_lookup.h
blob: d9fd8e8c1edc3ddbe6c149390461efee8c27794a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2012 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.

#ifndef QUICHE_QUIC_TOOLS_QUIC_NAME_LOOKUP_H_
#define QUICHE_QUIC_TOOLS_QUIC_NAME_LOOKUP_H_

#include <string>

#include "quiche/quic/platform/api/quic_socket_address.h"

namespace quic {

class QuicServerId;

namespace tools {

quic::QuicSocketAddress LookupAddress(int address_family_for_lookup,
                                      std::string host, std::string port);

quic::QuicSocketAddress LookupAddress(int address_family_for_lookup,
                                      const QuicServerId& server_id);

inline QuicSocketAddress LookupAddress(std::string host, std::string port) {
  return LookupAddress(0, host, port);
}

inline QuicSocketAddress LookupAddress(const QuicServerId& server_id) {
  return LookupAddress(0, server_id);
}

}  // namespace tools
}  // namespace quic

#endif  // QUICHE_QUIC_TOOLS_QUIC_NAME_LOOKUP_H_