Changes between Version 3 and Version 4 of Ticket #203, comment 6


Ignore:
Timestamp:
10/04/2013 04:15:06 AM (10 years ago)
Author:
str4d
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #203, comment 6

    v3 v4  
    1 Attached is my first pass at migrating `foolscap.pb.Listener` to use Twisted endpoints. Calling `Tub.listenOn()` should work with any valid endpoint description. This is untested, and non-TCP endpoint descriptions will listen but not be used because the client side still only knows TCP.
     1Attached is my first pass at migrating `foolscap.pb.Listener` to use Twisted endpoints. Calling `Tub.listenOn()` should work with any valid endpoint description. Non-TCP endpoint descriptions will listen but not be used because the client side still only knows TCP.
    22
    33Modifying the client side will take more time, because I don't yet understand how connections are managed by foolscap. [https://twistedmatrix.com/documents/13.1.0/api/twisted.internet.interfaces.IReactorTCP.html#connectTCP reactor.connectTCP()] (used in `TubConnector.connectToAll()`) returns an [https://twistedmatrix.com/documents/13.1.0/api/twisted.internet.interfaces.IConnector.html IConnector] which I think can be restarted, but [https://twistedmatrix.com/documents/13.1.0/api/twisted.internet.interfaces.IStreamClientEndpoint.html#connect IStreamClientEndpoint.connect()] returns an [https://twistedmatrix.com/documents/13.1.0/api/twisted.internet.interfaces.IProtocol.html IProtocol] which cannot.