mnGetUDPClock

This function returns the clock value of the specified packet.

In the following UDP modes UDP packets are sent with a clock value so that the receiving end can determine the age of the packet and drop out of order packets (this is done automatically by DarkNet):

- UM_PER_CLIENT (1): clock value is length of time application has been running in milliseconds

- UM_PER_CLIENT_PER_OPERATION (2): clock value is length of time application has been running in milliseconds

- UM_CATCH_ALL_NO (4): clock value is an integer that increases by 1 each time the sender sends a packet to us. You can use this to calculate packet loss; if 2 packets are received with clock values of: 1 and 3, then one packet was lost and never received in between the two successful sends.

Parameters

long long int Packet: This is the packet that the command should use.

Returns (Unsigned Integer)

If a value is available then the clock value of the currently received UDP packet is returned.

If a value is not available or an error occurs then 0 is returned.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Packets
(1) Miscellaneous
(0) DarkNet Help