摘要:
1、安装 daytime 服务:apt-get install xinetdchmod 777 /etc/xinetd.d/daytimevim /etc/xinetd.d/daytime把两个 disable = yes ,改成 disable = no/etc/init.d/xinetd restart2、timeserver.cpp:#include <time.h>#include <netinet/in.h>#include <string.h>#include <stdio.h>#include <unistd.h>#de 阅读全文