C语言写的DHCP服务器程序
作者:王鹤 QQ:583241212
在网上找了好久都没找到DHCP的代码,于是就决定自己写一个,历尽千辛万苦终于有了头绪,给大家分享一下。。
运行图:
代码:
// RecvBoard.cpp : Defines the entry point for the console
application.
//
// Accept.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include "string.h"
#include
#pragma comment(lib,"ws2_32.lib")
void showip();
int main(int argc, char* argv[])
{
printf("\n\t本例常演示接收广播报文\n");
WSADATA ws