• 2024-08-190245-CLAP-解析位置参数
    环境Time2022-12-02WSL-Ubuntu22.04CLAP4.0.29前言说明参考:https://docs.rs/clap/latest/clap/index.html目标CLAP表示CommandLineArgumentParser。基于clap编写第一个命令行程序。Cargo.toml[package]edition="2021"name="game"version="1.0.
  • 2024-08-140226-UDP 请求报文
    环境Time2022-11-20WSL-Ubuntu22.04Rust1.65.0pnet0.31.0tun-tap0.1.3前言说明参考:https://docs.rs/pnet/latest/pnet/index.htmlRFC792目标了解UDP协议的的字段。从这里开始,将进入第四层,传输层协议。UDP协议基于IP协议。配置TUNIP地址不要和主机的
  • 2024-07-130171-创建内核可执行文件
    环境Time2022-11-11WSL-Ubuntu22.04QEMU6.2.0NASM2.15.05前言说明参考:https://os.phil-opp.com/multiboot-kernel/目标编写一个可以加载执行的文件。启动代码globalstartsection.textbits32start:;print`OK`toscreenmovdword[0xb8000],0