Added good() function to socket libraries.