[Twisted-Python] Twisted Question
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
On Sun, May 31, 2009 at 3:06 PM, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
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. There is a project called "Punjab" that you might want to look at: http://code.stanziq.com/punjab
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
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
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Alex Clemesha clemesha.org
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:
On Sun, May 31, 2009 at 3:06 PM, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
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. There is a project called "Punjab" that you might want to look at: http://code.stanziq.com/punjab
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
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
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
On Sun, 31 May 2009 19:12:56 -0400, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
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.
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputo... answers a question very similar to yours. Jean-Paul
I know I'm missing something in that FAQ entry...I'm just not sure what. Thanks, Brandon McGinty Jean-Paul Calderone wrote:
On Sun, 31 May 2009 19:12:56 -0400, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
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.
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputo... answers a question very similar to yours.
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- -- Brandon McGinty Email:brandon.mcginty@gmail.com Tel:(602)-904-6548 SMS:(602)-904-6548 Skype:brandon.mcginty MSN:brandon_mcginty@hotmail.com
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:
On Sun, 31 May 2009 19:12:56 -0400, Brandon McGinty <brandon.mcginty@gmail.com> wrote:
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.
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputo... answers a question very similar to yours.
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- -- 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