You can connect with a custom resource, and then send the message/iq directly to the resource. If you send an iq instead of message, then the server will not default to sending it to the user's generic client if the custom client is not connected.<br>
<br><div class="gmail_quote">On Fri, Feb 5, 2010 at 11:20 PM, Davide Cerbo <span dir="ltr"><<a href="mailto:davidecerbo@gmail.com">davidecerbo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Hi all, I am developing a little application to do an experiment.</div><div>I have the following scenario:</div><div>- one XMPP bot with id <a href="mailto:bot@abc.com" target="_blank">bot@abc.com</a>)</div><div>- one user connect with a generic client, with id <a href="mailto:user@abc.com" target="_blank">user@abc.com</a> and that have the XMPP bot between his contacts </div>
<div>- the same user with id <a href="mailto:user@abc.com" target="_blank">user@abc.com</a> connect from my custom client</div><div><br></div><div>It's possible to send a message from <a href="mailto:bot@abc.com" target="_blank">bot@abc.com</a> to <a href="mailto:user@abc.com" target="_blank">user@abc.com</a> connected with my custom client?</div>
<div>I do not want that the user logged with generic client receive the message.</div><div>I need it because I want to send via XMPP: chat messages and also command to throw some events in my custom client and I do not like if the user views them.</div>
<div><br></div><div>Any suggest would be very appreciate.</div><div>I hope you understand my explanation because I'm an Italian boy and my english is not so good :)</div><div><span style="font-family: verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif; font-size: 13px;">Thank you very much </span></div>
<div><br>-- <br>-- <br>Davide Cerbo<br>-----------<br><a href="http://davide.cerbo.born-to-co.de" target="_blank">http://davide.cerbo.born-to-co.de</a><br><a href="http://jesty.it" target="_blank">http://jesty.it</a><br>
-----------<br><a href="http://www.exmachina.ch" target="_blank">http://www.exmachina.ch</a><br>
+ 39 329 70 81 927<br>-----------<br>
</div>
<br>_______________________________________________<br>
JDev mailing list<br>
Forum: <a href="http://www.jabberforum.org/forumdisplay.php?f=20" target="_blank">http://www.jabberforum.org/forumdisplay.php?f=20</a><br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>- Norman Rasmussen<br> - Email: <a href="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</a><br> - Home page: <a href="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</a><br>