Crates.io | tcp_packet |
lib.rs | tcp_packet |
version | 0.1.0 |
source | src |
created_at | 2022-06-30 21:49:43.558218 |
updated_at | 2022-06-30 21:49:43.558218 |
description | This crate is meant to demostrate the structure of a TCP Packet |
homepage | |
repository | https://github.com/AndrewMbugua/networking_projects/tree/main/tcp_packet |
max_upload_size | |
id | 616737 |
size | 799,199 |
It contains 2 parts:
public module[lib.rs] - defines a TCP header struct & a Format trait.
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.
More will be added overtime. Ideas: