By replacing Sp3 in IS_NCN (NewCoNnection) with a byte called Lang to point to an enumeration of languages supported by LFS we can find out right away what language that client prefers.
What do you all think?
// Language Enumerations (for NCN's Lang byte)
enum
{
LANG_ENGLISH,
LANG_FRENCH,
// ...
LANG_NUM
};
struct IS_NCN // New ConN
{
byte Size; // 56
byte Type; // ISP_NCN
byte ReqI; // 0 unless this is a reply to a TINY_NCN request
byte UCID; // new connection's unique id (0 = host)
char UName[24]; // username
char PName[24]; // nickname
byte Admin; // 1 if admin
byte Total; // number of connections including host
byte Flags; // bit 2 : remote
byte Lang; // See Language Enumerations.
};
What do you all think?