Happy π day!
This demo project is a Rust implementation of a slightly modified TCP-based Pigen protocol specified in IETF RFC 3091. The main differences between the official specification and this implementation are:
- use of TCP port 31415 instead of invalid 314159
- explicit transmission of the first digit of pi before the decimal point
cargo run
cargo build --release
You can write a custom TCP client or use a general-purpose one such as ncat:
ncat --recv-only <SERVER_IP> 31415
Special thanks go to the authors of the threadpool and rug crates that power this app, as well as The ABC Programmer's Handbook for providing the π digit spigot algorithm.
GNU General Public License v3