Passa al contenuto principale

Appendice H. Esempi: campi

H.3 Campi​

Questa sezione contiene esempi di costruttori di elementi di dati Field per diversi campi (Keywords, Text, Subject, Vendor-Defined).

Elemento di dati Field per le parole chiave. Il campo contiene due parole chiave, Message e Computer, ciascuna rappresentata in un elemento di dati ASCII-string separato.

   Field   Length  Keywords   ASCII   Length
+--------+--------+--------+--------+--------+
|01001100| 1 4 | 1 4 |00000010| 0 7 |
+--------+--------+--------+--------+--------+

+--- ---+
|Message|
+--- ---+

ASCII Length
+--------+--------+--- ---+
|00000010| 0 8 |Computer|
+--------+--------+--- ---+

Elemento di dati Field per Text con un elemento di dati Property-List contenente un commento allegato. Il campo Text contiene l'elemento di dati ASCII-String "Do you want lunch?"; l'elemento di dati Property-List contiene una proprietà comment, costituita da un elemento di dati ASCII-string contenente "Now?":

  Field    Length   Text    Prop-List  Length
+--------+--------+--------+--------+--------+
|11001100| 2 0 | 0 4 |00100100| 0 9 |
+--------+--------+--------+--------+--------+

Property Length PID ASCII
+--------+--------+--------+--------+
|01000101| 0 7 | 0 1 |00000010|
+--------+--------+--------+--------+

Length
+--------+- -+
| 0 4 |Now?|
+--------+- -+

ASCII Length
+--------+--------+---- ----+
|00000010| 1 2 |Do you want lunch?|
+--------+--------+---- ----+

Elemento di dati Field per Subject contenente un elemento di dati ASCII-String ("Good restaurants in Detroit" seguito da un ritorno a capo e da un avanzamento di riga). (Un destinatario si aspetterebbe che il messaggio contenga qualche informazione sui ristoranti dell'area di Detroit.):

  Field    Length   Subject   ASCII   Length
+--------+--------+--------+--------+--------+
|01001100| 2 1 | 0 7 |00000010| 1 E |
+--------+--------+--------+--------+--------+

+---- ----+
|Good restaurants in Detroit.<cr><lf>|
+---- ----+

Elemento di dati Field la cui forma e il cui significato sono stati definiti da un fornitore. Questo fornitore ha definito il campo definito dal fornitore 12 (decimale) come un campo con un printing name "Reply-by" e un contenuto costituito da una data; in questo caso il 7 gennaio 1981. (Il significato del campo 12 definito dal fornitore è proprio di quel fornitore; lo stesso numero di campo avrebbe un significato diverso per altri fornitori.):

  Field    Length  Qualifier   User   number
+--------+--------+--------+--------+--------+
|11001100| 1 F | 8 2 | 0 0 0 C |
+--------+--------+--------+--------+--------+

Prop-List Length Property Length
+--------+--------+--------+--------+
|00100100| 0 E |01000101| 0 C |
+--------+--------+--------+--------+

PID ASCII Length
+--------+--------+--------+---- ----+
| 0 2 |00000010| 0 9 |Reply-By:|
+--------+--------+--------+---- ----+

Date Length ASCII Length
+--------+--------+--------+--------+
|00101000| 0 A |00000010| 0 8 |
+--------+--------+--------+--------+

+--- ---+
|19810107|
+--- ---+