下载此文档

c# 获取服务器时间.docx


文档分类:IT计算机 | 页数:约16页 举报非法文档有奖
1/16
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/16 下载此文档
文档列表 文档介绍
C#获取服务器时间
Posted on 2009-12-16 13:17 Pagan 阅读(1052)评论(0)编辑收藏 田日代码
using System;
using ;
using the reply departed th e server for client.
///
/// RoundTripDelay - The time between the departure of request a nd arrival of reply.
///
/// LocalClockOffset 一 The offset of the local clock relative to the primary reference
/// source.
///
/// Initialize - Sets up data structure and prepares for connect
ion.
///
/// Connect - Connects to the time server and populates the data strueture.
///
/// IsResponseValid 一 Returns true if received data is valid and if comes from
/// a NTP-compliant time server.
///
/// ToString - Returns a string representation of the object.
///
///
/// Structure of the standard NTP header (as described in RFC 20
30)
/// 1 2 3
/// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
1
/// +—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+—+ _+_+_+_+
/// |LI | VN |Mode | Stratum | Poll | Precision
I
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+ _+_+_+_+
/// | Root Delay |
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+ _+_+_+_+
/// | Root Dispersion |
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+ _+_+_+_+
/// | Reference Identifier |
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+ _+_+_+_+
/// I I
/// | Reference Timestamp (64)
I
/// I I
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+ _+_+_+_+
/// I I
/// I Originate Timestamp (64)
/// I I
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
/// | |
/// | Receive Timestamp (64) |
/// I I
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
_+_+_+_+
/// I I
/// | Transmit Timestamp (64)
I
/// I I
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
_+_+_+_+
/// I Key Identifier (optional) (32)
I
/// +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
_+_+_+_+
/// I I
/// I I
/// I Message

c# 获取服务器时间 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数16
  • 收藏数0 收藏
  • 顶次数0
  • 上传人niupai21
  • 文件大小37 KB
  • 时间2022-05-20