Read line, thread termination handling is implemented
Added some defines about the username and password length
Client id type is modified to char*