資源簡介
參見文檔:http://blog.csdn.net/dijkstar/article/details/23095407;PJ Naughter在codeproject上的網(wǎng)站有很多其他的MFC開源庫:http://www.codeproject.com/Articles/519/PJ-Naughter-s-Freeware-Library
代碼片段和文件信息
/*
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_MsToN
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????362??1998-08-09?13:52??csntp.gif
?????文件???????20772??1998-11-16?15:06??CSntp.htm
?????目錄???????????0??2014-04-07?12:12??Debug\
?????目錄???????????0??2014-04-07?12:12??DebugU\
?????目錄???????????0??2014-04-07?12:12??Release\
?????目錄???????????0??2014-04-07?12:12??ReleaseU\
?????文件???????26663??1998-11-16?15:39??Sntp.cpp
?????文件????????3175??1998-08-08?22:57??Sntp.h
?????文件?????????206??1998-07-31?11:24??StdAfx.cpp
?????文件?????????317??1998-08-06?20:58??StdAfx.h
?????文件????????5996??1998-08-05?19:37??testsntp.001
?????文件????????3312??2014-04-07?10:09??testsntp.cpp
?????文件????????6024??2014-04-07?09:50??testsntp.dsp
?????文件?????????524??2014-04-07?09:50??testsntp.dsw
?????文件???????58368??2014-04-07?12:12??testsntp.ncb
?????文件???????48640??2014-04-07?12:12??testsntp.opt
?????文件?????????250??2014-04-07?11:58??testsntp.plg
評論
共有 條評論