[Twisted-Python] Receiving a root from a pb client

Hi, I am using pb to communicate in a client-server configuration. My client inherits from PBClientFactory. My server has a remote_take_root() method by which the client can connect to the server and pass in its root, thus allowing two-way communication. Is there anyway for the server to re-establish the connection (should it go down) in this setup, or is this the sole responsibility of the client? Thanks William Lewis 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

I don't see any response from the experts, so I'll say what I think: No. There is no way. One side has to listen, the other has to connect. You can make the network symmetric only by having both sides listen on different occasions - that means that for the server to initiate a connection, the client has to become a server itself. This is how TCP works. HTH. On 21/12/05, william.lewis@uk.bnpparibas.com <william.lewis@uk.bnpparibas.com> wrote:

Hi, first off all: - The only different between client and server in a twisted application is the way to etablish a connection. - The server listen, the client makes the connection. For the needs to re-connect after the connection had lost, use the "ReconnectingPBClientFactory" defined pbutil.py from the buildbot source. I use it to handle bad internet connection, that often lost the connection. With this factory and the a client that derived from pb.Root you could get the Root of the client at server side after a connection have been etablished. Hope that helps. Greeting Martin Am 21.12.2005 um 18:59 schrieb william.lewis@uk.bnpparibas.com:

I don't see any response from the experts, so I'll say what I think: No. There is no way. One side has to listen, the other has to connect. You can make the network symmetric only by having both sides listen on different occasions - that means that for the server to initiate a connection, the client has to become a server itself. This is how TCP works. HTH. On 21/12/05, william.lewis@uk.bnpparibas.com <william.lewis@uk.bnpparibas.com> wrote:

Hi, first off all: - The only different between client and server in a twisted application is the way to etablish a connection. - The server listen, the client makes the connection. For the needs to re-connect after the connection had lost, use the "ReconnectingPBClientFactory" defined pbutil.py from the buildbot source. I use it to handle bad internet connection, that often lost the connection. With this factory and the a client that derived from pb.Root you could get the Root of the client at server side after a connection have been etablished. Hope that helps. Greeting Martin Am 21.12.2005 um 18:59 schrieb william.lewis@uk.bnpparibas.com:
participants (3)
-
Martin Möllenbeck
-
Micky Latowicki
-
william.lewis@uk.bnpparibas.com