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

Method ClientAddr

internal/handler/context.go:86–88  ·  view source on GitHub ↗

ClientAddr returns the current client address (atomic read). Safe to call from multiple goroutines.

()

Source from the content-addressed store, hash-verified

84// ClientAddr returns the current client address (atomic read).
85// Safe to call from multiple goroutines.
86func (s *Session) ClientAddr() *net.UDPAddr {
87 return s.clientAddr.Load()
88}
89
90// SetClientAddr updates the client address (atomic write).
91// Used for connection migration when client changes IP/port.

Callers 2

handlePacketMethod · 0.80
backendToClientMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected