And use these to do the line-by-line reading automagically instead of having that logic in IRCClient. This will definitely come in handy.
Working with the LibC API's is tedious, so let's add some comfy C++ API's.