<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Hi,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>first off all:</DIV><DIV> - The only different between client and server in a twisted application is the way to etablish a connection.</DIV><DIV> - The server listen, the client makes the connection.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For the needs to re-connect after the connection had lost, use the "ReconnectingPBClientFactory" defined pbutil.py</DIV><DIV>from the buildbot source. I use it to handle bad internet connection, that often lost the connection. With this factory</DIV><DIV>and the a client that derived from pb.Root you could get the Root of the client at server side after a connection have</DIV><DIV>been etablished.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hope that helps.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Greeting</DIV><DIV>Martin</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>Am 21.12.2005 um 18:59 schrieb <A href="mailto:william.lewis@uk.bnpparibas.com">william.lewis@uk.bnpparibas.com</A>:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><FONT size="2" face="sans-serif">Hi,</FONT> <BR> <BR><FONT size="2" face="sans-serif">I am using pb to communicate in a client-server configuration. My client inherits from PBClientFactory.</FONT> <BR><FONT size="2" face="sans-serif">My server has a remote_take_root() method by which the client can connect to the server and pass in</FONT> <BR><FONT size="2" face="sans-serif">its root, thus allowing two-way communication.</FONT> <BR> <BR><FONT size="2" face="sans-serif">Is there anyway for the server to re-establish the connection (should it go down) in this setup, or is</FONT> <BR><FONT size="2" face="sans-serif">this the sole responsibility of the client?</FONT> <BR> <BR><FONT size="2" face="sans-serif">Thanks</FONT> <BR> <BR><FONT size="2" face="sans-serif">William Lewis</FONT><PRE>This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority
</PRE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Twisted-Python mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>