示例#1
0
文件: EAnpBroker.cs 项目: tmbx/etkwm
 /// <summary>
 /// Send a query to the remote host. The query is returned if the
 /// channel is open, otherwise null is returned.
 /// </summary>
 public EAnpOutgoingQuery SendCmd(AnpMsg cmd)
 {
     if (!m_openFlag) return null;
     cmd.ID = m_nextCmdID++;
     EAnpOutgoingQuery q = new EAnpOutgoingQuery(this, cmd);
     m_outgoingTree[q.CmdID] = q;
     InternalSendMsg(cmd);
     return q;
 }
示例#2
0
文件: EAnpBroker.cs 项目: tmbx/etkwm
 /// <summary>
 /// Remove an outgoing query from the outgoing query tree.
 /// </summary>
 public void InternalRemoveOutgoing(EAnpOutgoingQuery q)
 {
     m_outgoingTree.Remove(q.CmdID);
 }