0
I want to read \n terminated, UTF-8 encoded, lines from a network connection, and call a function for each full line. I cannot use fgets, because that function does not support nonblocking IO, which I want to use.
I currently have the following code, but it looks a bit too confusing to me. Some t...