MCPcopy
hub / github.com/cloudflare/cloudflared / DatagramConn

Interface DatagramConn

quic/v3/muxer.go:32–39  ·  view source on GitHub ↗

DatagramConn is the bridge that multiplexes writes and reads of datagrams for UDP sessions and ICMP packets to a connection.

Source from the content-addressed store, hash-verified

30// DatagramConn is the bridge that multiplexes writes and reads of datagrams for UDP sessions and ICMP packets to
31// a connection.
32type DatagramConn interface {
33 DatagramUDPWriter
34 DatagramICMPWriter
35 // Serve provides a server interface to process and handle incoming QUIC datagrams and demux their datagram v3 payloads.
36 Serve(context.Context) error
37 // ID indicates connection index identifier
38 ID() uint8
39}
40
41// DatagramUDPWriter provides the Muxer interface to create proper UDP Datagrams when sending over a connection.
42type DatagramUDPWriter interface {

Implementers 5

noopEyeballquic/v3/muxer_test.go
mockEyeballquic/v3/muxer_test.go
mockSessionquic/v3/muxer_test.go
sessionquic/v3/session.go
datagramConnquic/v3/muxer.go

Calls

no outgoing calls

Tested by

no test coverage detected