Create helper functions for checking when a socket is ready to read on and receive a single line at a time. Begin stratum authorisation process.