A QUIC connection driven by one task: the client half of what moonquic states and thispackage puts on a datagram socket. Reading is a poll, because a connection that alsocarries control and QPACK streams cannot hand every arrival to one caller.
Send what the connection has queued and take one datagram in, which is one turn of ahandshake or of an exchange. False when nothing arrived within timeout.
A datagram socket. One task may receive while others send; two tasks receiving at oncewould each take half the datagrams, so a connection that needs one reader keeps one.
The next datagram, or None when timeout milliseconds pass first. Without a timeoutit waits for one, which is what a server does and a client polling a handshake does not.
Connect to host:port and shake hands. The connection is returned once the handshake isconfirmed; tls offers h3 or whatever ALPN the peer is expected to choose.