0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-05 15:18:52 +02:00
construct/include/ircd/net/addrs.h

26 lines
785 B
C++

// Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2019 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_NET_ADDRS_H
extern "C"
{
struct ifaddrs;
}
namespace ircd::net::addrs
{
using closure = std::function<bool (const string_view &, const ipport &, const uint &)>;
using raw_closure = std::function<bool (const struct ::ifaddrs &)>;
bool for_each(const raw_closure &);
bool for_each(const closure &);
}