On Thu, Jul 18, 2013 at 1:09 PM,  <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01:09 pm, <a href="mailto:p.mayers@imperial.ac.uk" target="_blank">p.mayers@imperial.ac.uk</a> wrote:<br></div></blockquote><div>... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Well, exactly. It's currently easier for me to sub-class a Twisted internal/private class. But if that goes away, that option is unavailable and a replacement would be nice - even if it's a convenience API like:</div>
</blockquote><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
connectExistingSocket(...)<br>
<br>
Isn't there code to do this as part of the systemd activation?<br>
</blockquote>
<br></div>
I really wanted to suggest something along those lines.  The current code has the limitation that it will only accept an *already* connected socket.  There isn't something that will accept a socket and then do the connection part for you.</blockquote>
<div><br></div><div>Sorry it is not exactly about the subject, but what is the current API that accepts already connected socket?</div><div>Some time ago I was looking for such an API without success (probably not very hard though).</div>
<div>-- </div></div>Mikhail Terekhov