On Tue, Jul 14, 2009 at 2:26 AM, Nida <span dir="ltr">&lt;<a href="mailto:crazyturkey@gmail.com">crazyturkey@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote">Hi there,<br><div class="gmail_quote"><div><br>I noticed that you are on the twisted words mailing list and it says that you are the maintainer too, so I was hoping I could ask you a few questions:<br>



</div>I would like to use the twisted words oscar protocols.<br>I am trying to use the oscardemo.py example as a guide and I would like to use sendMessage without call back and I don&#39;t want to use the reactor (because I don&#39;t want it to loop).<br>





I would like the bot to log in, but I want some user interaction to type in a message to send to others. My problem is I want to use sendMessage as well as getting a buddyList.<br>Is there a better way then using ClientCreator? Or a simpler way to log in?</div>

</div></blockquote><div><br>(I&#39;m cc-ing the twisted list, since that&#39;s the place where questions should go)<br><br>ClientCreator is just an easier way to connection client protocols, without having to make your own Factory.<br>

<br>You have to use the reactor; that&#39;s how the TCP data gets to your client.  I&#39;m not sure what &quot;I don&#39;t want it to loop&quot; means, but you can always stop the reactor after you&#39;re done with whatever networking you&#39;re doing.<br>

<br>You don&#39;t need to have a callback for sendMessage.  Just don&#39;t pass the wantAck kwarg to the method, and you won&#39;t get a Deferred back.<br></div></div><br>-p<br>-- <br>Paul Swartz<br>paulswartz at gmail dot com<br>

<a href="http://paulswartz.net/">http://paulswartz.net/</a><br>AIM: z3penguin<br>