Anivie / tcp-test

An experiment on computer networks was conducted, which successfully completed the full three-way handshake and four-way handshake. It was implemented using unsafe Rust FFI and was also encapsulated in a simple manner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English in here

一次关于计算机网络的实验

使用raw socket,我使用(unsafe) rust ffi来完成这一功能,过程非常曲折(
目前已经完成,可以正常握手并接收信息,连接的目标是tokio的echo demo

本项目参考于这个实验,我使用rust手动实现并进行了简单的封装 你可以在Linux中直接使用cargo run来运行这段程序
测试的连接目标为TcpListener,我将其封装为独立的服务器

测试环境:

  • Ubuntu(WSL)
  • Rust Nightly

About

An experiment on computer networks was conducted, which successfully completed the full three-way handshake and four-way handshake. It was implemented using unsafe Rust FFI and was also encapsulated in a simple manner


Languages

Language:Rust 99.9%Language:C 0.1%