1 Star 0 Fork 56

CoderAdo / communication_dhcp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
CoderAdo 提交于 2023-11-27 10:52 . dhcp部件化

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.

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;

Related project

communication_wifi

1
https://gitee.com/CodeAdo/communication_dhcp.git
git@gitee.com:CodeAdo/communication_dhcp.git
CodeAdo
communication_dhcp
communication_dhcp
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891