Passa al contenuto principale

Uso tramite UDP

Quando è usato tramite UDP, il servizio Time funziona come segue:

S: Listen on port 37 (45 octal).

U: Send an empty datagram to port 37.

S: Receive the empty datagram.

S: Send a datagram containing the time as a 32 bit binary number.

U: Receive the time datagram.

Il server resta in ascolto di un datagramma sulla porta 37. Quando arriva un datagramma, il server restituisce un datagramma contenente il valore di tempo a 32 bit. Se il server non è in grado di determinare l'ora nel proprio sito, dovrebbe scartare il datagramma in arrivo e non rispondere.