commit | 5566b43feb094961a673d1a320fbc7098c3e104a | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Dec 18 09:59:16 2024 -0800 |
committer | Gopher Robot <gobot@golang.org> | Thu Jan 09 11:13:18 2025 -0800 |
tree | 390a8d6f2babfc3405ddad8af3b4d6765e9f2a47 | |
parent | 97dd44e2019c8257c8fe782f48c0a5770d01a195 [diff] |
quic: add the ability to create an endpoint with a fake network Add a NewEndpoint function to create an *Endpoint using a net.PacketConn. We rely on a number of features of *net.UDPConn which aren't provided by PacketConn, so an Endpoint using anything other than a UDPConn will be limited. The main use case for providing a non-UDPConn connection is testing, in particular tests which use testing/synctest and cannot use a concrete network connection. Change-Id: I9e62cb8d7d545f64d99103beb9a32f149d4119bf Reviewed-on: https://go-review.googlesource.com/c/net/+/641498 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Auto-Submit: Damien Neil <dneil@google.com>
This repository holds supplementary Go networking packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/net.
The main issue tracker for the net repository is located at https://go.dev/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.