#pdu #encoding-standard #serialization #byte #rfc-2741

agentx

AgentX library implementing all PDU types and encodings according to the standard

2 releases

0.1.1 Sep 22, 2023
0.1.0 Sep 22, 2023

#2661 in Encoding

Download history 13/week @ 2026-01-01 228/week @ 2026-01-08 99/week @ 2026-01-15 176/week @ 2026-01-22 258/week @ 2026-01-29 251/week @ 2026-02-05 246/week @ 2026-02-12 167/week @ 2026-02-19 249/week @ 2026-02-26 29/week @ 2026-03-05 70/week @ 2026-03-12 4/week @ 2026-03-19 41/week @ 2026-03-26 14/week @ 2026-04-02 37/week @ 2026-04-09 30/week @ 2026-04-16

122 downloads per month

MIT/Apache

95KB
2K SLoC

agentx

This library implements all PDU types and encodings according to RFC2741. It provides Rust idiomatic abstractions wherever possible and allows serialization and deserialization to/from wire compatible bytes.

Documentation

The typical documentation including examples can be found on docs.rs/agentx. This library provides all the types and PDUs the standard defines, but does not provide any higher level abstractions that do connection handling or AgentX session handling. A full featured AgentX sub-agent implementation can be found as part of drbd-reactor here. This should provide enough hints to implement a sub-agent on your own. Because of the multi-threaded nature of drbd-reactor, the implementation might look a bit overwhelming, a simple single-threaded sub-agent should be doable ways easier. Good starting points are agentx_handler() for establishing a session and Metrics::get() and Metrics::get_next() for actual PDU handling.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

No runtime deps