Module tftp_server::server [] [src]

Structs

TftpServer

Enums

TftpError

Functions

create_socket

Creates a std::net::UdpSocket on a random open UDP port. The range of valid ports is from 0 to 65535 and if the function cannot find a open port within 100 different random ports it returns an error.

incr_block_num

Increments the block number and handles wraparound to 0 instead of overflow.

Type Definitions

Result