Module server

Module server 

Source
Expand description

Used to send/receive Messages to/from a DHCP client.

Structs§

Config
Representation of a toe-beans.toml file. Used by the Server.
LeaseTime
The time, in seconds, before a lease expires. A lower value will increase dhcp traffic between client and server. A higher value will increase the chances that all ip addresses are assigned.
Leases
Used to manage the dynamic collection of IP addresses that the server leases.
Server
Ties together a Config, Socket, and Leases in order to handle incoming Client Messages, and construct server-specific response Messages.

Constants§

RESOLVED_SERVER_PORT
Resolves to TEST_SERVER_PORT for debug builds and SERVER_PORT for release builds
SERVER_PORT
The standard port for dhcpv4 servers defined in the RFC.
TEST_SERVER_PORT
This is an arbitrary port number above 1024 that can be used when testing the server. Port numbers below 1024 are privileged ports that require root access to bind to. See: https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html