Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Remove an outgoing query from the outgoing query tree.
 /// </summary>
 public void InternalRemoveOutgoing(EAnpOutgoingQuery q)
 {
     m_outgoingTree.Remove(q.CmdID);
 }