[Twisted-Python] Twisted Question
![](https://secure.gravatar.com/avatar/26b0584bf78639750bbe5761780b80ac.jpg?s=120&d=mm&r=g)
Hi All, I just subscribed to this list, after viewing tons of documents about twisted, factories, and all the like. Here is the situation. I am trying to design a bridge between twisted.web and twisted.words.protocols.irc. I have read a lot about using factories, and communicating with a central "program class" like in the finger tutorial. However, I can not figure out how to communicate between two running protocols. Here's an example: User connects to web server. Irc client connects to irc server User clicks on search link, and enters query. A command, along with that query, is sent to irc server via irc client. Response is returned, processed, and sent to the page that is the result of submiting that form. Process continues until user clicks log out, where in the irc client disconnects. Any help anyone can give me is greatly appreciated. Thanks, Brandon McGinty -- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
![](https://secure.gravatar.com/avatar/d7d18c48316f83f1bf99618559ed2444.jpg?s=120&d=mm&r=g)
On Sun, May 31, 2009 at 3:06 PM, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
What punjab does is it bridges twisted.web and twisted.words.protocols.jabber (XMPP) and generally uses "twisted.words" a lot. Unless you have a strict requirement on doing something IRC related, you might find that XMPP does a lot of 'IRC type' things really well, and there is a lot of momentum behing XMPP tools right now. I imagine that this might be a good jumping off point for the work that you are trying to do. hth, Alex
-- Alex Clemesha clemesha.org
![](https://secure.gravatar.com/avatar/26b0584bf78639750bbe5761780b80ac.jpg?s=120&d=mm&r=g)
I'll give that a shot...unfortunately, the data is only accessible via an irc server and protocol. Hopefully I can gleen some useful information about cross-protocol communication by lokng at the source. Thank You, Brandon McGinty Alex Clemesha wrote:
-- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Sun, 31 May 2009 19:12:56 -0400, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputo... answers a question very similar to yours. Jean-Paul
![](https://secure.gravatar.com/avatar/26b0584bf78639750bbe5761780b80ac.jpg?s=120&d=mm&r=g)
Thanks to your post, something just clicked for me. I've got it working, and life is good. I thank you all for your help. Sincerely, Brandon McGinty Jean-Paul Calderone wrote:
-- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
![](https://secure.gravatar.com/avatar/d7d18c48316f83f1bf99618559ed2444.jpg?s=120&d=mm&r=g)
On Sun, May 31, 2009 at 3:06 PM, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
What punjab does is it bridges twisted.web and twisted.words.protocols.jabber (XMPP) and generally uses "twisted.words" a lot. Unless you have a strict requirement on doing something IRC related, you might find that XMPP does a lot of 'IRC type' things really well, and there is a lot of momentum behing XMPP tools right now. I imagine that this might be a good jumping off point for the work that you are trying to do. hth, Alex
-- Alex Clemesha clemesha.org
![](https://secure.gravatar.com/avatar/26b0584bf78639750bbe5761780b80ac.jpg?s=120&d=mm&r=g)
I'll give that a shot...unfortunately, the data is only accessible via an irc server and protocol. Hopefully I can gleen some useful information about cross-protocol communication by lokng at the source. Thank You, Brandon McGinty Alex Clemesha wrote:
-- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Sun, 31 May 2009 19:12:56 -0400, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputo... answers a question very similar to yours. Jean-Paul
![](https://secure.gravatar.com/avatar/26b0584bf78639750bbe5761780b80ac.jpg?s=120&d=mm&r=g)
Thanks to your post, something just clicked for me. I've got it working, and life is good. I thank you all for your help. Sincerely, Brandon McGinty Jean-Paul Calderone wrote:
-- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
participants (3)
-
Alex Clemesha
-
Brandon McGinty
-
Jean-Paul Calderone