Client: Fix memory loss in the SetHost method
functions: Implement the MsgInitString and MsgInitData functions
Client: Fix the memory leaks in WriteData method
Client: Fix the memory leaks in SendReadRequest method