News for hackers. Stuff that matters.
Re:Althttpd: Simple webserver in a single C file by mbreese on Tuesday June 08, 2021 @10:13AM (#27435462)
> I don't think it's really any more difficult to write a simple protocol that uses binary data compared to text.

I don’t really think so either… I mean, I’ve done both and it’s really not terrible to use binary. I think text is marginally easier to parse, but once to have the routines to read the right endian-ness, the advantage is minor. As you said, the biggest concern (as always) should be the design. A good design can be implemented easily with either mode.

However, it is significantly easier to debug a text protocol. Attaching a monitor or capturing packets is easier with text as the parsers are much easier and more generic.

Re:Althttpd: Simple webserver in a single C file by michaelmior on Tuesday June 08, 2021 @10:26AM (#27435611)
That's fair. Although tools like Wireshark have made this much better.