[Twisted-Python] Twisted P2P

Hi Guys I need some advice before I start hacking about with socket, SocketServer and twisted. I'm planning to write a LAN P2P program to make it easy to share files on the LAN. I'm planning to make it cross platform win / unix. Each P2P client will advertise using UDP multicast that they are out there. If a client wants to send a file or files it will connect TCP to the client and request auth. Upon auth it will tx the files using TCP. I would like the each P2P client to be able to handle multiple connections (send + rec). Suggestions, pointers, help appreciated. Regs Marinus Important Notice: This email is subject to important restrictions, qualifications and disclaimers ("the Disclaimer") that must be accessed and read by visiting our website and viewing the webpage at the following address: http://www.deloitte.com/za/disclaimer. The Disclaimer is deemed to form part of the content of this email in terms of Section 11 of the Electronic Communications and Transactions Act, 25 of 2002. If you cannot access the Disclaimer, please obtain a copy thereof from us by sending an email to ClientServiceCentre@Deloitte.co.za.

On Fri, Apr 22, 2005 at 10:46:05AM +0200, van Aswegen, Marinus (ZA - Johannesburg) wrote:
Sounds well suited to Twisted. Feel free to ask specific questions if you get stuck on something. The tutorial and the writing servers and writing clients howtos should answer most of your questions, though: http://twistedmatrix.com/projects/core/documentation/howto/tutorial/ http://twistedmatrix.com/projects/core/documentation/howto/servers.html http://twistedmatrix.com/projects/core/documentation/howto/clients.html You might also find some of the examples to be interesting: http://twistedmatrix.com/projects/core/documentation/examples/index.xhtml -Andrew.

On Apr 22, 2005, at 5:06 AM, Andrew Bennetts wrote:
I don't think there are any examples, anywhere, of the multicast support. I think there is some (unfinished?) mDNS code in Itamar's sandbox, but that's complicated enough that it really doesn't serve as a good example. Other than that, I think the rest should be pretty straightforward. -bob

attached is my updates to Tim Allens mDNS code that works with Twisted 2.0 I have also added some facilities to add responders and observers of specific messages, it is not complete but a good start also attached is an mdnslistener that I wrote based on what I say in itamar's sandbox

On Fri, Apr 22, 2005 at 10:46:05AM +0200, van Aswegen, Marinus (ZA - Johannesburg) wrote:
Sounds well suited to Twisted. Feel free to ask specific questions if you get stuck on something. The tutorial and the writing servers and writing clients howtos should answer most of your questions, though: http://twistedmatrix.com/projects/core/documentation/howto/tutorial/ http://twistedmatrix.com/projects/core/documentation/howto/servers.html http://twistedmatrix.com/projects/core/documentation/howto/clients.html You might also find some of the examples to be interesting: http://twistedmatrix.com/projects/core/documentation/examples/index.xhtml -Andrew.

On Apr 22, 2005, at 5:06 AM, Andrew Bennetts wrote:
I don't think there are any examples, anywhere, of the multicast support. I think there is some (unfinished?) mDNS code in Itamar's sandbox, but that's complicated enough that it really doesn't serve as a good example. Other than that, I think the rest should be pretty straightforward. -bob

attached is my updates to Tim Allens mDNS code that works with Twisted 2.0 I have also added some facilities to add responders and observers of specific messages, it is not complete but a good start also attached is an mdnslistener that I wrote based on what I say in itamar's sandbox
participants (4)
-
Andrew Bennetts
-
Bob Ippolito
-
jarrod roberson
-
van Aswegen, Marinus (ZA - Johannesburg)