MCPcopy Create free account
hub / github.com/HyBuildNet/quic-relay / NotifyServerPacket

Method NotifyServerPacket

internal/handler/context.go:132–137  ·  view source on GitHub ↗

NotifyServerPacket calls OnServerPacket callback for Long Header packets. Used to learn new SCIDs from the server during handshake.

(packet []byte)

Source from the content-addressed store, hash-verified

130// NotifyServerPacket calls OnServerPacket callback for Long Header packets.
131// Used to learn new SCIDs from the server during handshake.
132func (c *Context) NotifyServerPacket(packet []byte) {
133 if c.OnServerPacket != nil && len(packet) > 0 && (packet[0]&0x80) != 0 {
134 // Only call for Long Header packets (first bit = 1)
135 c.OnServerPacket(packet)
136 }
137}
138
139// Drop immediately removes the session from the proxy.
140// Safe to call multiple times (idempotent) and from any goroutine.

Callers 1

backendToClientMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected