1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
//! # Brainwires Agent Network
//!
//! Agent-to-agent networking layer for the Brainwires Agent Framework.
//!
//! Provides IPC, remote bridge, mesh networking, routing, discovery,
//! and pluggable transports for agent communication.
//!
//! ## Protocol-Layer Stack
//!
//! The networking layer is organized as a 5-layer protocol stack:
//!
//! 1. **Identity** — agent identity, capability advertisement, credentials
//! 2. **Transport** — how bytes move (IPC, Remote, TCP, A2A, Pub/Sub)
//! 3. **Routing** — where messages go (direct, topology, broadcast, content)
//! 4. **Discovery** — how agents find each other (mDNS, registry, manual)
//! 5. **Application** — user-facing API (NetworkManager, events)
/// Networking transport layer — pluggable transports for agent communication.
// ============================================================================
// Agent Communication Backbone (IPC, Auth, Remote)
// ============================================================================
/// Authentication for agent network connections.
/// IPC (inter-process communication) socket protocol.
/// Remote bridge and realtime protocol.
/// Common agent network traits.
// ============================================================================
// Client
// ============================================================================
/// Client for connecting to a remote agent network server.
pub use ;
// ============================================================================
// Mesh Networking (topology, routing, discovery, federation)
// ============================================================================
/// Distributed agent mesh networking — topology, routing, discovery, federation.
// ============================================================================
// Protocol-Layer Stack (Identity, Network Core)
// ============================================================================
/// Peer discovery — how agents find each other on the network.
/// Agent identity, capability advertisement, and credentials.
/// Message routing — direct, broadcast, and content-based routing.
/// Message envelopes and payload types exchanged across the network.
/// Network lifecycle events and connection state.
/// Application-layer entry point: `NetworkManager` + builder.
/// Errors emitted by the protocol-stack layers (identity / transport / routing / discovery / application).
/// Universal messaging channels (absorbed from brainwires-channels).
/// LAN inspection tooling — NIC enumeration, IP config, ARP discovery, port scanning.
///
/// These are **operator** tools (akin to `ip`, `ifconfig`, `arp`, `nmap`), distinct
/// from the agent-discovery primitives in [`mod@discovery`]. Originally lived in
/// `brainwires-hardware::network`.
pub use ;
pub use ;
pub use ;
pub use ;
pub use NetworkError;
pub use ;
pub use IpcTransport;
pub use PubSubTransport;
pub use RemoteTransport;
pub use TcpTransport;
pub use ;