I'm a little, no, I'm very tired and I can't figure out a good/nice/clean/legal way to read from a socket (INET) until it matches a certain string (4 characters to be correct).
I'd do byte-per-byte reading if it didn't suck so much but is there really no efficient way to do this type of thing?
I was sorta thinking of changing the default EOL character but I couldn't find how to do that (if it's even possible) ...