(endpoint *DynamicEndpoint, remoteInit bool, wgEndpoint conn.Endpoint, t *RouterTunables)
| 226 | } |
| 227 | |
| 228 | func NewEndpoint(endpoint *DynamicEndpoint, remoteInit bool, wgEndpoint conn.Endpoint, t *RouterTunables) *NylonEndpoint { |
| 229 | return &NylonEndpoint{ |
| 230 | t: t, |
| 231 | remoteInit: remoteInit, |
| 232 | WgEndpoint: wgEndpoint, |
| 233 | DynEP: endpoint, |
| 234 | history: make([]time.Duration, 0), |
| 235 | expRTT: math.Inf(1), |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | func (u *NylonEndpoint) calcR() (time.Duration, time.Duration, time.Duration) { |
| 240 | u.Lock() |
no outgoing calls