MCPcopy
hub / github.com/lesismal/nbio / Add

Method Add

protocol_stack.go:17–19  ·  view source on GitHub ↗

go:norace

(p Protocol)

Source from the content-addressed store, hash-verified

15
16//go:norace
17func (ps *ProtocolStack) Add(p Protocol) {
18 ps.stack = append(ps.stack, p)
19}
20
21//go:norace
22func (ps *ProtocolStack) Delete(p Protocol) {

Callers 15

OnOpenMethod · 0.80
initHandlersMethod · 0.80
initFunction · 0.80
TestEchoFunction · 0.80
TestTimeoutFunction · 0.80
TestFuzzFunction · 0.80
TestUDPFunction · 0.80
StartMethod · 0.80
DialAsyncTimeoutMethod · 0.80
readUDPMethod · 0.80
SetReadDeadlineMethod · 0.80
SetWriteDeadlineMethod · 0.80

Calls

no outgoing calls

Tested by 10

initFunction · 0.64
TestEchoFunction · 0.64
TestTimeoutFunction · 0.64
TestFuzzFunction · 0.64
TestUDPFunction · 0.64
BenchmarkGoFunction · 0.64
BenchmarkTaskPoolFunction · 0.64
BenchmarkIOTaskPoolFunction · 0.64
TestListenerMuxFunction · 0.64
testAsyncFunction · 0.64