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

Method Stop

integration/harness.go:242–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242func (v *VirtualHarness) Stop() {
243 println("Stopping VirtualHarness")
244 v.Cancel(fmt.Errorf("stopping harness"))
245 for idx, _ := range v.Central.Routers {
246 v.Nylons[idx].Load().Stop()
247 }
248 v.Net.Stop()
249 println("Stopped VirtualHarness")
250}
251
252type PacketFilter func(node state.NodeId, src, dst netip.Addr, data []byte) bool // return true to intercept, and stop the rest of the stack
253func (h PacketFilter) TryApply(node state.NodeId, src, dst netip.Addr, data []byte) bool {

Callers 10

TestInProcessRoutingFunction · 0.95
TestTTLFunction · 0.95
TestAckRetractSentOnWireFunction · 0.95
TestOptimalConvergenceFunction · 0.95
TestRapidToggleConfigFunction · 0.95
TestStartStopFunction · 0.95
TestSimplePingFunction · 0.95
TestSimpleRoutedPingFunction · 0.95

Calls 2

StopMethod · 0.65
CancelMethod · 0.45

Tested by 10

TestInProcessRoutingFunction · 0.76
TestTTLFunction · 0.76
TestAckRetractSentOnWireFunction · 0.76
TestOptimalConvergenceFunction · 0.76
TestRapidToggleConfigFunction · 0.76
TestStartStopFunction · 0.76
TestSimplePingFunction · 0.76
TestSimpleRoutedPingFunction · 0.76