libdpf/include/dpf/net/mesh_rendezvous.hpp
Ryan Henry 0d22946a0e Checkpoint the party/runtime stack before share-program and malicious-mode work.
Ship the TLS mesh, composer, Beaver/Yao/leaf MPC, prep/online paths, apps, and docs so the tree is pushable before elevating share_expr, security_mode, and prep resume.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 05:59:19 -06:00

28 lines
664 B
C++

/// @file dpf/net/mesh_rendezvous.hpp
/// @brief Shared in-process port table for party clique joins.
#ifndef LIBDPF_INCLUDE_DPF_NET_MESH_RENDEZVOUS_HPP__
#define LIBDPF_INCLUDE_DPF_NET_MESH_RENDEZVOUS_HPP__
#include <atomic>
#include <vector>
namespace dpf
{
namespace net
{
/// @brief Shared port table: `ports[i]` is party `i`'s listen port (0 until bound).
using mesh_ports = std::vector<std::atomic<unsigned short>>;
inline mesh_ports make_mesh_ports(unsigned n)
{
mesh_ports ports(n);
for (auto & p : ports)
p.store(0);
return ports;
}
} // namespace net
} // namespace dpf
#endif // LIBDPF_INCLUDE_DPF_NET_MESH_RENDEZVOUS_HPP__