Subject: Ad-Hoc Commands
Hi,
I'm trying to remote control a client. Therefor I wrote to clients one that sends the command (sender) and one that receives the command (receiver).
So far the sender sends an IQ with the command to the receiver. I catch the incoming IQ in a IQ Listener (is this correct?), and than I would like to fetch the command out of the IQ. I tried it that way
Can anybody help me how to get the a Command-Object out of the node-Object.
Thanks for your help
I'm trying to remote control a client. Therefor I wrote to clients one that sends the command (sender) and one that receives the command (receiver).
So far the sender sends an IQ with the command to the receiver. I catch the incoming IQ in a IQ Listener (is this correct?), and than I would like to fetch the command out of the IQ. I tried it that way
static void xmppCon_IqHandler(object sender, IQ iq)
{
Console.WriteLine(iq);
agsXMPP.Xml.Dom.NodeList nodelist = iq.ChildNodes;
foreach(agsXMPP.Xml.Dom.Node node in nodelist){
Console.WriteLine(node);
}
}
{
Console.WriteLine(iq);
agsXMPP.Xml.Dom.NodeList nodelist = iq.ChildNodes;
foreach(agsXMPP.Xml.Dom.Node node in nodelist){
Console.WriteLine(node);
}
}
Can anybody help me how to get the a Command-Object out of the node-Object.
Thanks for your help