[Twisted-Python] Any good examples?

Ken Kinder ken at kenkinder.com
Thu Apr 14 11:55:27 MDT 2005


Mel Irizarry wrote:

> I am in need of a server that will allow multiple clients to connect, 
> take a MySQL Statement from the client, execute it and return the 
> results to the client.  Is there a good example that I could download 
> and perhaps modify?

I'm not sure how clients would be connecting, but it sounds like you 
want Twisted to actually behave as a MySQL server. This is probably 
going to be tricky because you're going to have to re-implement the 
MySQL server-side protocol.

If having clients connect through another protocol like Perspective 
Broker is an option, you could get by pretty easily. I attached a couple 
of files that basically combine the twisted perspective broker and rdbms 
examples.

-Ken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: QueryProxy.py
Type: application/x-python
Size: 560 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20050414/f3b53f93/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QueryProxyClient.py
Type: application/x-python
Size: 576 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20050414/f3b53f93/attachment-0005.bin>


More information about the Twisted-Python mailing list