Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
ip_address.hpp
Go to the documentation of this file.
1#pragma once
2
3// IP address utilities — parsing, validation, local address queries.
4
5#include <string>
6#include <string_view>
7#include <vector>
8#include <cstdint>
9
10namespace pulp::runtime {
11
13bool is_valid_ipv4(std::string_view address);
14
16std::vector<std::string> local_ipv4_addresses();
17
19std::string local_ipv4_address();
20
22std::string hostname();
23
24} // namespace pulp::runtime
Definition generated_event_source.hpp:33
bool is_valid_ipv4(std::string_view address)
Parse and validate an IPv4 address.
std::string hostname()
Get the hostname.
std::string local_ipv4_address()
Get the primary local IPv4 address (first non-loopback).
std::vector< std::string > local_ipv4_addresses()
Get all local IPv4 addresses (excluding loopback).