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

Martin Möllenbeck martin at moellenbecks.de
Mon Dec 26 03:56:24 MST 2005


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 at uk.bnpparibas.com:

>
> 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
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20051226/386b8901/attachment.html>


More information about the Twisted-Python mailing list