public SocketCtrl(SocketMsgHandler funcMsg, SocketBrokenHandler funcBroken) { size = 0; cmd = 0; flag = 0; m_strRecvData = new byte[0]; m_funcMsgHandler = funcMsg; m_funcBroken = funcBroken; m_oWSProtocol = new WSProtocol(); }