<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>ClientCreator is not proper for my case, because I need the re-connect ability.<br>
<br><br></blockquote><div><br>I made a tricky for access to the protocol instance created, but I don't know if this is sane for the structure of twisted. Is something like this:<br>----------<br>class P(Protocol):<br>
def connectionMade(self):<br> self.factory.instance = self<br> return<br> ...<br><br> def connectionLost(self):<br> self.factory.instance = None<br><br>class F(Factory): <br> protocol = P
<br> instance = None<br> ...<br>----------<br>then you can access to protocol instance inside the factory, if it's not None.<br clear="all"></div></div>If somebody see an inconsistency or a better sugestion please let me know.
<br><br>Francisco<br>-- <br>"El hombre se descubre cuando se mide con un obstáculo" <br>(Saint Exupéry)