ClientAddr returns the current client address (atomic read). Safe to call from multiple goroutines.
()
| 84 | // ClientAddr returns the current client address (atomic read). |
| 85 | // Safe to call from multiple goroutines. |
| 86 | func (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. |
no outgoing calls
no test coverage detected