文件名称:SetTime
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-10-13
- 文件大小:
- 60kb
- 下载次数:
- 0次
- 提 供 者:
- L**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
以UDP通信为基础,实现了linux平台主机之间系统时间同步的功能。程序分为客户端和服务端两个。服务端运行于作为时间标准的主机上,客户端运行于需要同步系统时间的主机上。运行时,客户端向服务段发送同步时间请求,服务端收到请求后将本机系统时间发给客户端,然后客户端根据收到的答复设置本机系统时间。运行时,请保证以root用户运行客户端程序以确保有权限修改系统时间。-With UDP-based communication, to achieve the system time synchronization between host linux platform functionality. Program is divided into client and server-side two. Server running on the host as a time standard, the client runs on the host need to synchronize the system time. Runtime, the client sends a request to the service segment synchronization time, the server receives a request after the local system time to the client, then the client based on the responses received to set the local system time. Operation, please ensure that the root user running the client program to ensure that there is permission to modify the system time.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SetTime\1.sh
.......\bin\a.out
.......\...\Client_5_13.txt
.......\...\Client_5_7.txt
.......\...\nohup.out
.......\...\Server_5_8.txt
.......\...\TimeClient
.......\...\TimeClient.ini
.......\...\TimeServer
.......\...\TimeServer.ini
.......\Client.txt
.......\code\client\client.cpp
.......\....\......\Client.txt
.......\....\......\makefile
.......\....\......\ServerConf.ini
.......\....\......\ServerConfig.ini
.......\....\......\TimeClient
.......\....\pub\ProtolDef.h
.......\....\...\stdint.h
.......\....\...\TimeTool.cpp
.......\....\...\TimeTool.h
.......\....\...\UDPSocket.cpp
.......\....\...\UDPSocket.h
.......\....\server\makefile
.......\....\......\server
.......\....\......\server.cpp
.......\....\......\server.cpp.bak
.......\....\......\Server_5_12.txt
.......\....\......\TimeServer
.......\nohup.out
.......\UDPSocket.cpp
.......\code\client
.......\....\pub
.......\....\server
.......\bin
.......\code
.......\lib
SetTime