16 lines
469 B
C++
16 lines
469 B
C++
|
|
#ifndef NETWORKAUX_HPP
|
|
|
|
#include <expected>
|
|
#include <string>
|
|
|
|
std::expected<std::string, std::string> nethost(std::string network, uint prefix, uint64_t num);
|
|
std::expected<uint, std::string> netprefix(const std::string network);
|
|
std::expected<std::string, std::string> network(const std::string network);
|
|
|
|
uint64_t netcapa6(const uint prefix);
|
|
uint64_t netcapa4(const uint prefix);
|
|
std::expected<uint, std::string> netcapa(std::string network, uint prefix);
|
|
|
|
#endif
|