C# Class NSoft.NFramework.Licensing.SntpClient

SNTP (Simple Network Time Protocol) Client입니다.
显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
BeginGetDate ( Action getTime, System.Action failure ) : void
SntpClient ( string hosts ) : System

Private Methods

Method Description
ComputeDate ( ulong msec ) : System.DateTime
EndGetHostAddress ( IAsyncResult asyncResult ) : void
EndReceive ( IAsyncResult ar ) : void
EndSend ( IAsyncResult ar ) : void
GetIsServerMode ( byte sntpData ) : bool
GetMilliSeconds ( byte sntpData, byte offset ) : ulong
GetTransmitTimestamp ( byte sntpData ) : System.DateTime
IsResponseValid ( byte sntpData ) : bool
MaybeOperationTimeout ( object state, bool timedOut ) : void
RegisterWaitForTimeout ( State newState, IAsyncResult result ) : void

Method Details

BeginGetDate() public method

public BeginGetDate ( Action getTime, System.Action failure ) : void
getTime Action
failure System.Action
return void

SntpClient() public method

public SntpClient ( string hosts ) : System
hosts string
return System