# communication_dhcp **Repository Path**: pine404/communication_dhcp ## Basic Information - **Project Name**: communication_dhcp - **Description**: The DHCP module provides DHCP client and DHCP server, used to obtain, assign and manage IP address.| DHCP模块提供DHCP客户端和服务端,用于获取、分配和管理IP地址相关信息。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 136 - **Created**: 2023-04-06 - **Last Updated**: 2023-04-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # communication_dhcp #### Description Dynamic 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: 1. 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. 2. 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. #### Software Architecture Software architecture description: As 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. ![](figures/zh-cn_image_dhcp.png) #### Instructions 1. Call the class DhcpServiceAPI to get the IDhcpService instance; 2. Start DHCP function (Client/Server) through IDhcpService instance; 3. The client registers the callback of the DhcpResultNotify class through GetDhcpResult; 4. The server side obtains the notification of the DHCP server exit abnormally through GetDhcpSerProExit. #### Related project communication_wifi