Un réseau local
Exemple:
const MAXUSERNAME = 32;
const MAXFILELEN = 65535;
const MAXNAMELEN = 255;
enum filekind {
TEXT = 0;
DATA = 1;
EXEC = 2;
};
union filetype switch (filekind kind) {
case TEXT:
void;
case DATA:
string creator<MAXNAMELEN>
case EXEC:
string interpretor<MAXNAMELEN>
};
struct file {
string filename<MAXNAMELEN>
filetype type;
string owner<MAXUSERNAME>
opaque data<MAXFILELEN>
};
00 00 00 09 ....
73 69 6c 6c sill
79 70 72 6f ypro
67 00 00 00 g...
00 00 00 02 ....
00 00 00 04 ....
6c 69 73 70 lisp
00 00 00 04 ....
6A 6f 68 6e john
00 00 00 06 ....
28 71 75 69 (qui
74 29 00 00 t)..
Diapositive précédente
Diapositive suivante
Revenir à la première diapositive
Afficher la version graphique