sethmlarson on release-0.4.0
Release 0.4.0 (compare)
pquentin on master
Support renaming custom classes… (compare)
pquentin on master
Drop support for Python 3.4 (#5… (compare)
dependabot-preview[bot] on pip
Bump pylint from 2.4.2 to 2.4.4… (compare)
dependabot-preview[bot] on pip
dependabot-preview[bot] on master
Bump astor from 0.8.0 to 0.8.1 … Merge pull request #1333 from p… (compare)
None
if it's incomplete)
IPPROTO_SCTP
isn’t available, the stdlib could support socket creation with IPPROTO_SCTP
, but behind the scenes the OS call is for SOCK_RAW
/IPPROTO_RAW
and the socket module actually provides the SCTP implementation. Does that sound terrible? Would there be precedent for something like Trio to supply that implementation if the OS and stdlib don’t?
socket
module is a pretty direct exposure of the underlying system's socket API, so I don't think there's precedent for something like that at that level. Also I'm guessing the cpython team might be reluctant to take responsibility for shipping a SCTP implementation inside python.
trio
package, or as a third-party library sort of like trio-websocket
. It's more of a judgement call on what we think will be best for users.
trio
package should give you everything you need to implement SCTP-on-trio, and if it doesn't then we should fix that
trio.socket
API is already what UDP users want? UDP is a pretty specific and low-level thing (compared to say TCP, which is just one example out of many streaming byte transports)
SOCK_SEQPACKET
for unix-domain sockets, for in-order delivery with framing, which can be super useful if you're OK with it being linux-specific. The key feature is that each send
is atomic, so you can have multiple processes acting as producers and consumers on the same socket.)
SOCK_SEQPACKET
is a Channel[bytes]
(or whatever we end up calling it...), and if you're using a UDP socket for point-to-point communication only, you could model that as a Channel[bytes]
, though more generally I guess it's a Channel[Tuple[address, bytes]]
recvmsg