C# Class Rhino.Licensing.SntpClient

显示文件 Open project: ayende/rhino-licensing Class Usage Examples

Public Methods

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

SntpClient ( string hosts ) : System

Private Methods

Method Description
ComputeDate ( ulong milliseconds ) : 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