Ticket #4471 enhancement new

Opened 3 years ago

Last modified 4 weeks ago

Add IDatagramEndpoint interface and implementations

Reported by: glyph Owned by: jerub
Priority: normal Milestone:
Component: core Keywords:
Cc: rwall Branch:
Author: Launchpad Bug:

Description

As described on #1442, there should be datagram endpoint interfaces to parallel the stream endpoint interfaces.

Change History

1

  Changed 3 years ago by glyph

(In [29147]) Merge endpoints-1442-5: a high level connection and listening API

Author: rwall, dreid, glyph

Reviewer: radix, exarkun, glyph, jknight

Fixes: #1442

Refs: #4470 Refs: #4471 Refs: #4472 Refs: #4473 Refs: #3204

Added new "endpoint" interfaces in twisted.internet.interfaces, which abstractly describe stream transport endpoints which can be listened on or connected to. Implementations for TCP and SSL clients and servers are present in twisted.internet.endpoints. Notably, client endpoints' connect() methods return cancellable Deferreds, so code written to use them can bypass the awkward "ClientFactory.clientConnectionFailed" and "Connector.stopConnecting" methods, and handle errbacks from or cancel the returned deferred, respectively.

2

follow-up: ↓ 3   Changed 2 months ago by jerub

  • owner changed from glyph to jerub

I have been working on this ticket.

3

in reply to: ↑ 2   Changed 4 weeks ago by rwall

  • cc rwall added

Replying to jerub:

I have been working on this ticket.

Hi Jerub,

I'd quite like to help out with this. Is there any code? I couldn't find a branch.

Ultimately I'd like to be able to launch twisted DNS using systemd socket activation. This seems like the first step.

See also:

Note: See TracTickets for help on using tickets.