1# communication_dhcp 2 3#### Description 4Dynamic Host Configuration Protocol (DHCP) is a standard protocol defined by RFC 1541 that allows servers to dynamically assign IP addresses and configuration information to clients. The DHCP protocol supports C/S (client/server) structure, which mainly includes two parts: 5 61. DHCP client: it is usually mobile phones, PCs, printers and other terminal devices in the network, using the IP information assigned from the DHCP server, including IP address, default gateway and DNS. 7 82. DHCP server: used to manage all IP network information, and process the client's DHCP request, assigning IP address, subnet mask, default gateway and other content to the accessing client. 9 10#### Software Architecture 11Software architecture description: 12As shown in the figure below, the DhcpService class provides an interface for external management of DHCP module services, including start, stop and result acquisition of DHCP client services. start, stop and management of address pools and lease tables on the DHCP server, etc., which is convenient for calling the interface of DhcpService services in other subsystem business implementations. 13 14 15 16#### Instructions 17 181. Call the class DhcpServiceAPI to get the IDhcpService instance; 192. Start DHCP function (Client/Server) through IDhcpService instance; 203. The client registers the callback of the DhcpResultNotify class through GetDhcpResult; 21 22#### Related project 23 24communication_wifi 25