tcp_packet 0.1.0

This crate is meant to demostrate the structure of a TCP Packet
Documentation
  • Coverage
  • 0%
    0 out of 14 items documented0 out of 1 items with examples
  • Size
  • Source code size: 800.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • AndrewMbugua

This program is meant to demostrate the structure of a TCP Packet

It contains 2 parts:

  1. public module[lib.rs] - defines a TCP header struct & a Format trait.

  2. main module[main.rs] - populates the structure with default zero values(0) & uses an unsafe primitive to convert the struct to bytes for transfer.

I wanted to see if I could fully utilize the standard library before depending on 3rd party crates.

Dependencies,code left in but unused are: serde, tokio & cargo-deps for future improvements.

Dependencies

More will be added overtime. Ideas:

  1. Re-convert bytes to string
  2. Encode - decode
  3. Encryption - TCP uses TLS Encryption