Skip to main content

Module server

Module server 

Source
Expand description

TFTP server implementation

This module provides complete TFTP server functionality:

  • server: Main server logic, handles client requests
  • worker: Worker threads, handles file transfers
  • config: Server configuration

Re-exports§

pub use config::Config;

Modules§

config

Structs§

Server
Server struct is used for handling incoming TFTP requests.
Worker
Worker struct is used for multithreaded file sending and receiving. It creates a new socket using the Server’s IP and a random port requested from the OS to communicate with the requesting client.

Functions§

run_with_config
Run the TFTP server with CLI arguments and optional configuration