add some singletons
move Mysocket class
增加协议对象