MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / sendToSession

Method sendToSession

datagramsession/manager.go:182–191  ·  view source on GitHub ↗
(datagram *packet.Session)

Source from the content-addressed store, hash-verified

180}
181
182func (m *manager) sendToSession(datagram *packet.Session) {
183 session, ok := m.sessions[datagram.ID]
184 if !ok {
185 m.log.Error().Str(LogFieldSessionID, FormatSessionID(datagram.ID)).Msg("session not found")
186 return
187 }
188 // session writes to destination over a connected UDP socket, which should not be blocking, so this call doesn't
189 // need to run in another go routine
190 session.transportToDst(datagram.Payload)
191}

Callers 1

ServeMethod · 0.95

Calls 3

FormatSessionIDFunction · 0.85
transportToDstMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected