关键词:ADO;多线程;网络广播;网络编程
the Automatic IP Address Configuration Software for Lab
—— the Design and Implementation of the Server-side program
Abstract
More and more laboratory managers care about the IP address allocation and management problem. Most administrators are using DHCP to resolve it. Although DHCP technology can provide users convenient access to network, but there are some drawbacks, such as the random IP address. This causes the user's IP address is distributed randomly, with uncertainty. The main function of the system is to achieve the static IP address allocation of the laboratory computers. It remedies the DHCP technology’s drawbacks. The system uses some network technology. It records the MAC address and the allocated IP address of the client who send the request packet to server by LAN. Through identifying a host by the specific MAC address, when the same request arrived, the same IP addresses shall be allocated again, which achieves the function that the client shall be allocated to the fixed IP addresses. If users need to manually allocate the IP address, they can modify the IP addresses that correspond to MAC address. IP addresses are set by the client system. Program development tools is Visual C + + 6.0, access the database with ADO, to optimize system performance. To avoid the block of client requests, multithread technology is used.