change: proper close socket and reset;
other minor fix.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>
fix: reconnect to RoomManager failed when exit from Room.
change: try to fix receive abnormally after join Room.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>
minor changes.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>
change: use new header.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>
change: into new header.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>