1 unstable release
0.1.0 | Jun 30, 2022 |
---|
#29 in #meant
745KB
72 lines
This program is meant to demostrate the structure of a TCP Packet
It contains 2 parts:
-
public modulelib.rs - defines a TCP header struct & a Format trait.
-
main modulemain.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.
More will be added overtime. Ideas:
- Re-convert bytes to string
- Encode - decode
- Encryption - TCP uses TLS Encryption