Fixed up reading from the socket, if I'm gonna use glib, I might as well use it wherever I can...