Skip to content

Implementation of a slightly modified TCP-based Pigen service described in IETF RFC 3091

License

Notifications You must be signed in to change notification settings

Rust-Lab-PJATK/pigen-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pigen-tcp

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

Running in dev mode

cargo run

Building

cargo build --release

Connecting to the server

You can write a custom TCP client or use a general-purpose one such as ncat:

ncat --recv-only <SERVER_IP> 31415

Acknowledgements

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.

License

GNU General Public License v3

About

Implementation of a slightly modified TCP-based Pigen service described in IETF RFC 3091

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages