diff --git a/content/posts/2024/05/studying-a-communication-protocol/index.it.md b/content/posts/2024/05/studying-a-communication-protocol/index.it.md index 51d2e3a..5aa851d 100644 --- a/content/posts/2024/05/studying-a-communication-protocol/index.it.md +++ b/content/posts/2024/05/studying-a-communication-protocol/index.it.md @@ -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... diff --git a/content/posts/2024/05/studying-a-communication-protocol/index.md b/content/posts/2024/05/studying-a-communication-protocol/index.md index 1dd6853..bc4e5ba 100644 --- a/content/posts/2024/05/studying-a-communication-protocol/index.md +++ b/content/posts/2024/05/studying-a-communication-protocol/index.md @@ -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 diff --git a/themes/blowfish b/themes/blowfish index 13ff6f5..0a91156 160000 --- a/themes/blowfish +++ b/themes/blowfish @@ -1 +1 @@ -Subproject commit 13ff6f5341b373751880ac396495e8ef56008383 +Subproject commit 0a91156191b9f5353cff8082c99a8c7d788c7e39