Seems like a couple of record delimited functions, call them `SendLn` and `RecvLn` would be useful, both for plain sockets and for SSL sockets.