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

Method SetClientAddr

internal/handler/context.go:92–94  ·  view source on GitHub ↗

SetClientAddr updates the client address (atomic write). Used for connection migration when client changes IP/port.

(addr *net.UDPAddr)

Source from the content-addressed store, hash-verified

90// SetClientAddr updates the client address (atomic write).
91// Used for connection migration when client changes IP/port.
92func (s *Session) SetClientAddr(addr *net.UDPAddr) {
93 s.clientAddr.Store(addr)
94}
95
96// Context carries request-scoped data through the handler chain.
97// All value access methods are thread-safe.

Callers 2

OnConnectMethod · 0.95
handlePacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected