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

Struct InMemoryNetwork

integration/harness.go:262–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260type OutMapping func(curNode state.NodeId, to bindtest.ChannelEndpoint2) bindtest.ChannelEndpoint2
261
262type InMemoryNetwork struct {
263 sync.Mutex
264 cfg *VirtualHarness
265 binds []conn.Bind
266 virtTun []*tuntest.ChannelTUN
267 SelfHandler PacketFilter // packet filter for handling packets destined for the current node
268 TransitHandler PacketFilter // packet filter for handling packets passing through the current node
269 EpOutMapping OutMapping
270 ready atomic.Bool
271 readyCond *sync.Cond
272}
273
274func (i *InMemoryNetwork) WaitForReady() {
275 i.readyCond.L.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected