Difference between revisions of "TNTPClient"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Services __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-...")
 
Line 135: Line 135:
 
|-
 
|-
 
| <code>procedure IncrementInitialClockCount;</code>
 
| <code>procedure IncrementInitialClockCount;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>function FormatTime(Time:Int64):String;</code>
 +
| &nbsp;
 +
|-
 +
| <code>function FormatOffset(Offset:Int64):String;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>function CalculateClockOffset(T1,T2,T3,T4:Int64):Int64;</code>
 +
| &nbsp;
 +
|-
 +
| <code>function CalculateRoundtripDelay(T1,T2,T3,T4:Int64):Int64;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 297: Line 313:
 
! Note
 
! Note
 
| None documented
 
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TNTPClient.FormatTime(Time:Int64):String;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TNTPClient.FormatOffset(Offset:Int64):String;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TNTPClient.CalculateClockOffset(T1,T2,T3,T4:Int64):Int64;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| T1 = Originate Timestamp (time request sent by client) T2 = Receive Timestamp (time request received by server) T3 = Transmit Timestamp (time reply sent by server) T4 = Destination Timestamp (time reply received by client)
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TNTPClient.CalculateRoundtripDelay(T1,T2,T3,T4:Int64):Int64;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| T1 = Originate Timestamp (time request sent by client) T2 = Receive Timestamp (time request received by server) T3 = Transmit Timestamp (time reply sent by server) T4 = Destination Timestamp (time reply received by client)
 
|-
 
|-
 
|}
 
|}

Revision as of 01:12, 17 August 2022

Return to Unit Services


Description


To be documented

Class definitions



[Expand]

TNTPClient = class(TWinsock2UDPClient)


Function declarations



[Expand]
constructor TNTPClient.Create;
Description: To be documented


[Expand]
destructor TNTPClient.Destroy;
Description: To be documented


[Expand]
function TNTPClient.AcquireLock:Boolean;
Description: To be documented


[Expand]
function TNTPClient.ReleaseLock:Boolean;
Description: To be documented


[Expand]
procedure TNTPClient.SetPollInterval(APollInterval:LongWord);
Description: To be documented


[Expand]
procedure TNTPClient.SetPollTimeout(APollTimeout:LongWord);
Description: To be documented


[Expand]
procedure TNTPClient.SetPollRetries(APollRetries:LongWord);
Description: To be documented


[Expand]
procedure TNTPClient.SetRetryTimeout(ARetryTimeout:LongWord);
Description: To be documented


[Expand]
procedure TNTPClient.SetInitialClockGet(AInitialClockGet:Boolean);
Description: To be documented


[Expand]
procedure TNTPClient.SetInitialClockCount(AInitialClockCount:LongWord);
Description: To be documented


[Expand]
procedure TNTPClient.SetTimerHandle(ATimerHandle:TTimerHandle);
Description: To be documented


[Expand]
function TNTPClient.GetTime:Int64;
Description: To be documented


[Expand]
procedure TNTPClient.IncrementInitialClockCount;
Description: To be documented


[Expand]
function TNTPClient.FormatTime(Time:Int64):String;
Description: To be documented


[Expand]
function TNTPClient.FormatOffset(Offset:Int64):String;
Description: To be documented


[Expand]
function TNTPClient.CalculateClockOffset(T1,T2,T3,T4:Int64):Int64;
Description: To be documented


[Expand]
function TNTPClient.CalculateRoundtripDelay(T1,T2,T3,T4:Int64):Int64;
Description: To be documented


Return to Unit Reference