> BTW, why does SMTP (and now ENCP) use HELO instead of HELLO?
Five letters is too much to type. (All the SMTP commands are four.)
It's a lot easier to parse a command (think slow 1980-era computers) when
you know its length:
foo = get_five_bytes(); /* Otherwise, you'd have to read one byte at a time
until you hit \n, or use a buffer that you pass
along to execute()
Note for the pedantic: Real SMTP unfortunately
uses \r\n instead of just \n
*/
if (foo[4] != '\n')
freak();
foo[4] = '\0';
cmd = parse (foo);
if (cmd == NULL)
freak();
execute(cmd);
--
Mike Schiraldi
Verisign Applied Research
_______________________________________________
freenet-tech mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/tech