增加一个尝试对socket的class封装

Signed-off-by: hurley25 <liuhuan1992@gmail.com>