Set error for sucess at beginning of functions.
Correct comment for hints socket type
Edit include guard in socket.hpp to match file name