MCPcopy Create free account
hub / github.com/encodeous/nylon / NewEndpoint

Function NewEndpoint

state/endpoint.go:228–237  ·  view source on GitHub ↗
(endpoint *DynamicEndpoint, remoteInit bool, wgEndpoint conn.Endpoint, t *RouterTunables)

Source from the content-addressed store, hash-verified

226}
227
228func 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
239func (u *NylonEndpoint) calcR() (time.Duration, time.Duration, time.Duration) {
240 u.Lock()

Callers 5

handleProbePingFunction · 0.92
probeNewMethod · 0.92
reconcileRouterStateMethod · 0.92
runTestsFunction · 0.85

Calls

no outgoing calls

Tested by 1

runTestsFunction · 0.68