This commit is contained in:
parent
10586137d8
commit
7c1080e60b
@ -232,16 +232,20 @@ l'ID del dipendente.
|
||||
aa55010100000000000055aaxxxxxxxxxxxxxxxxxxxx4c0000000000595a7c7c0000
|
||||
```
|
||||
|
||||
I primi 10 bit del payload sono il nome del dipendente, in caso il nome sia
|
||||
più corto di 10 caratteri lo spazio rimanente sarà riempito con dei caratteri
|
||||
terminatori `\0`.
|
||||
Se l'header della risposta è impostato a `01 00 00 00 00 00 00 00` allora ciò
|
||||
significa che lo username non è stato trovato, invece se è impostato a `01 01
|
||||
00 00 00 00 00 00` allora i primi 10 bit del payload rappresentano il nome del
|
||||
dipendente.
|
||||
|
||||
In caso il nome sia più corto di 10 caratteri lo spazio rimanente sarà riempito
|
||||
con dei caratteri terminatori `\0`.
|
||||
|
||||
Questi messaggi compongono quasi la totailtà della terza fase che ho descritto
|
||||
nel capitolo precedente, quella nella quale ci sono tanti piccoli messaggi.
|
||||
Questo fa intuire che il client che prima di tutto fa il dump delle presenze in
|
||||
modo quasi istantaneo , poi aspetta due minuti scaricando **per ogni presenza
|
||||
rilevata** il nome del dipendente, anche se questo è già stato richiesto in
|
||||
precedenza. Qualcuno insegni il concetto di
|
||||
nel capitolo precedente, quella nella quale vengono inviati tanti piccoli
|
||||
messaggi. Questo fa intuire che il client che prima di tutto fa il dump delle
|
||||
presenze in modo quasi istantaneo , poi aspetta due minuti scaricando **per
|
||||
ogni presenza rilevata** il nome del dipendente, anche se questo è già stato
|
||||
richiesto in precedenza. Qualcuno insegni il concetto di
|
||||
[memoizzazione](https://it.wikipedia.org/wiki/Memoizzazione) a questi
|
||||
informatici...
|
||||
|
||||
|
@ -216,9 +216,12 @@ employee ID.
|
||||
aa55010100000000000055aaxxxxxxxxxxxxxxxxxxxx4c0000000000595a7c7c0000
|
||||
```
|
||||
|
||||
The first 10 bits of the payload contain the employee's name; if it's shorter
|
||||
than 10 characters, the remaining space will be filled with null terminators
|
||||
(`\0`).
|
||||
If the response header is set to `01 00 00 00 00 00 00 00`, then this means
|
||||
that the username was not found. However, if it is set to `01 01 00 00 00 00 00
|
||||
00`, then the first 10 bits of the payload represent the employee's name.
|
||||
|
||||
If the name is shorter than 10 characters, the remaining space will be filled
|
||||
with null-terminator characters `\0`.
|
||||
|
||||
These messages comprise almost the entirety of the third phase I described in
|
||||
the last chapter, the one with many but small messages. This suggests that the
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 13ff6f5341b373751880ac396495e8ef56008383
|
||||
Subproject commit 0a91156191b9f5353cff8082c99a8c7d788c7e39
|
Loading…
x
Reference in New Issue
Block a user