资源简介
对时,smv goose解析,配置工具代码,本人花了大量精力搜集。
代码片段和文件信息
/*
Module : SNTP.CPP
Purpose: implementation for a MFC class to encapsulate the SNTP protocol
Created: PJN / 05-08-1998
History: PJN / 16-11-1998 1. m_nOriginateTime was getting set incorrectly in the SNTP response
2. GetLastError now works when a timeout occurs.
Copyright (c) 1998 by PJ Naughter.
All rights reserved.
*/
///////////////////////////////// Includes //////////////////////////////////
#include “stdafx.h“
#include
#include “sntp.h“
///////////////////////////////// Macros / Locals ///////////////////////////
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
const double NTP_FRACTIONAL_TO_MS = (((double)1000.0)/0xFFFFFFFF);
const double NTP_TO_SECOND = (((double)1.0)/0xFFFFFFFF);
const long JAN_1ST_1900 = 2415021;
//Lookup table to convert from Milliseconds (hence 1000 Entries)
//to fractions of a second expressed as a DWORD
DWORD CNtpTime::m_MsToNTP[1000] =
{
0x00000000 0x00418937 0x0083126f 0x00c49ba6 0x010624dd 0x0147ae14
0x0189374c 0x01cac083 0x020c49ba 0x024dd2f2 0x028f5c29 0x02d0e560
0x03126e98 0x0353f7cf 0x03958106 0x03d70a3d 0x04189375 0x045a1cac
0x049ba5e3 0x04dd2f1b 0x051eb852 0x05604189 0x05a1cac1 0x05e353f8
0x0624dd2f 0x06666666 0x06a7ef9e 0x06e978d5 0x072b020c 0x076c8b44
0x07ae147b 0x07ef9db2 0x083126e9 0x0872b021 0x08b43958 0x08f5c28f
0x09374bc7 0x0978d4fe 0x09ba5e35 0x09fbe76d 0x0a3d70a4 0x0a7ef9db
0x0ac08312 0x0b020c4a 0x0b439581 0x0b851eb8 0x0bc6a7f0 0x0c083127
0x0c49ba5e 0x0c8b4396 0x0ccccccd 0x0d0e5604 0x0d4fdf3b 0x0d916873
0x0dd2f1aa 0x0e147ae1 0x0e560419 0x0e978d50 0x0ed91687 0x0f1a9fbe
0x0f5c28f6 0x0f9db22d 0x0fdf3b64 0x1020c49c 0x10624dd3 0x10a3d70a
0x10e56042 0x1126e979 0x116872b0 0x11a9fbe7 0x11eb851f 0x122d0e56
0x126e978d 0x12b020c5 0x12f1a9fc 0x13333333 0x1374bc6a 0x13b645a2
0x13f7ced9 0x14395810 0x147ae148 0x14bc6a7f 0x14fdf3b6 0x153f7cee
0x15810625 0x15c28f5c 0x16041893 0x1645a1cb 0x16872b02 0x16c8b439
0x170a3d71 0x174bc6a8 0x178d4fdf 0x17ced917 0x1810624e 0x1851eb85
0x189374bc 0x18d4fdf4 0x1916872b 0x19581062 0x1999999a 0x19db22d1
0x1a1cac08 0x1a5e353f 0x1a9fbe77 0x1ae147ae 0x1b22d0e5 0x1b645a1d
0x1ba5e354 0x1be76c8b 0x1c28f5c3 0x1c6a7efa 0x1cac0831 0x1ced9168
0x1d2f1aa0 0x1d70a3d7 0x1db22d0e 0x1df3b646 0x1e353f7d 0x1e76c8b4
0x1eb851ec 0x1ef9db23 0x1f3b645a 0x1f7ced91 0x1fbe76c9 0x20000000
0x20418937 0x2083126f 0x20c49ba6 0x210624dd 0x2147ae14 0x2189374c
0x21cac083 0x220c49ba 0x224dd2f2 0x228f5c29 0x22d0e560 0x23126e98
0x2353f7cf 0x23958106 0x23d70a3d 0x24189375 0x245a1cac 0x249ba5e3
0x24dd2f1b 0x251eb852 0x25604189 0x25a1cac1 0x25e353f8 0x2624dd2f
0x26666666 0x26a7ef9e 0x26e978d5 0x272b020c 0x276c8b44 0x27ae147b
0x27ef9db2 0x283126e9 0x2872b0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 362 1998-08-09 13:52 代码\csntp\csntp.gif
文件 20772 1998-11-16 15:06 代码\csntp\CSntp.htm
文件 26663 1998-11-16 15:39 代码\csntp\Sntp.cpp
文件 3175 1998-08-08 22:57 代码\csntp\Sntp.h
文件 206 1998-07-31 11:24 代码\csntp\StdAfx.cpp
文件 317 1998-08-06 20:58 代码\csntp\StdAfx.h
文件 5996 1998-08-05 19:37 代码\csntp\testsntp.001
文件 3236 1998-11-16 15:32 代码\csntp\testsntp.cpp
文件 539 2008-07-02 08:51 代码\csntp\testsntp.dsw
文件 66560 2011-08-22 10:30 代码\csntp\testsntp.ncb
文件 250 2011-08-22 10:26 代码\csntp\testsntp.plg
文件 6028 2011-08-19 18:03 代码\csntp\testsntp.dsp
文件 48640 2011-08-22 10:30 代码\csntp\testsntp.opt
文件 110691 2011-08-19 17:59 代码\csntp\Debug\testsntp.exe
文件 112940 2011-08-19 17:59 代码\csntp\Debug\testsntp.ilk
文件 238592 2011-08-19 17:59 代码\csntp\Debug\testsntp.pdb
文件 271360 2011-08-22 10:26 代码\csntp\Debug\vc60.idb
文件 61440 2011-08-19 17:59 代码\csntp\Debug\vc60.pdb
文件 0 2011-08-19 17:59 代码\csntp\Debug\Sntp.sbr
文件 48980 2011-08-19 17:59 代码\csntp\Debug\Sntp.obj
文件 0 2011-08-19 17:59 代码\csntp\Debug\StdAfx.sbr
文件 7112832 2011-08-19 17:59 代码\csntp\Debug\testsntp.pch
文件 10178 2011-08-19 17:59 代码\csntp\Debug\StdAfx.obj
文件 0 2011-08-19 17:59 代码\csntp\Debug\testsntp.sbr
文件 20537 2011-08-19 17:59 代码\csntp\Debug\testsntp.obj
文件 2851840 2011-08-19 17:59 代码\csntp\Debug\testsntp.bsc
文件 543 2009-12-29 22:17 代码\DecodeSMVGOOSE\DecodeSMV.dsw
文件 2197 2009-11-28 22:33 代码\DecodeSMVGOOSE\goose.txt
文件 331 2011-02-14 15:54 代码\DecodeSMVGOOSE\ReadMe.txt
文件 152 2009-12-04 10:26 代码\DecodeSMVGOOSE\smv.txt
............此处省略33个文件信息
- 上一篇:公司年会抽奖程序
- 下一篇:SYD Service Utility.zip
评论
共有 条评论