/// <summary> /// 发送消息 /// </summary> public bool Send(Message msg) { byte[] cmd = NetTools.PackMesage(msg); return(socket.Send(cmd, cmd.Length)); }