Bitcoin Core
28.99.0
P2P Digital Currency
src
common
netif.h
Go to the documentation of this file.
1
// Copyright (c) 2024 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_COMMON_NETIF_H
6
#define BITCOIN_COMMON_NETIF_H
7
8
#include <
netaddress.h
>
9
10
#include <optional>
11
14
std::optional<CNetAddr>
QueryDefaultGateway
(
Network
network);
15
17
std::vector<CNetAddr>
GetLocalAddresses
();
18
19
#endif
// BITCOIN_COMMON_NETIF_H
netaddress.h
Network
Network
A network type.
Definition:
netaddress.h:32
GetLocalAddresses
std::vector< CNetAddr > GetLocalAddresses()
Return all local non-loopback IPv4 and IPv6 network addresses.
Definition:
netif.cpp:275
QueryDefaultGateway
std::optional< CNetAddr > QueryDefaultGateway(Network network)
Query the OS for the default gateway for network.
Definition:
netif.cpp:251
Generated on Wed Dec 18 2024 20:00:09 for Bitcoin Core by
1.9.4