Skip to content

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

Notifications You must be signed in to change notification settings

Anivie/tcp-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published