[Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?

twisted-web at udmvt.ru twisted-web at udmvt.ru
Wed Jul 28 07:14:22 EDT 2010

After all, I'm posting my angry code.
The first file is a module with some classes, that can be used
to accomplish my task.
The second file is a UNIX program, it uses socketpair() and then fork()
to start both client and server, they talk each other via PB protocol.
Running that produces some noise to the screen and then they exit.

That was my minimal effort...
That is really a partial solution to the problem, but:
 a. it already works for me,
 b. I'm not sure it will work for other protocols,
 c. I found it too complex and involving a lot of other code to make it in a proper way
so, sorry, I haven't worked toward a real contribution to a twisted code.

Perhaps anyone may suggest another "proper" solution, more elegant?
I'm interested in having this kind of functionality supported by twisted.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tx_fake_connector.py
Type: text/x-python
Size: 8564 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20100728/3b55121e/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tx_test.py
Type: text/x-python
Size: 2971 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20100728/3b55121e/attachment-0001.py 

More information about the Twisted-Python mailing list