public static ProtocolEngine Instance()
 {
     if (m_Engine == null)
     {
         m_Engine = new ProtocolEngine();
     }
     return(m_Engine);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="handle"></param>
 /// <param name="cmd"></param>
 /// <param name="func">命令返回成功处理函数</param>
 /// <param name="TimeoutFunc">命令超时处理函数</param>=
 private void AddCommand(long ip, BaseCommand cmd, EventHandler <EventArgs> func, EventHandler <EventArgs> timeoutFunc)
 {
     cmd.HandleResponse += func;
     cmd.HandleTimeOut  += timeoutFunc;
     ProtocolEngine.Instance().AddCommand(ip, cmd);
 }