MCPcopy
hub / github.com/cloudflare/tableflip / newFds

Function newFds

fds.go:84–98  ·  view source on GitHub ↗
(inherited map[fileName]*file, lc *net.ListenConfig)

Source from the content-addressed store, hash-verified

82}
83
84func newFds(inherited map[fileName]*file, lc *net.ListenConfig) *Fds {
85 if inherited == nil {
86 inherited = make(map[fileName]*file)
87 }
88
89 if lc == nil {
90 lc = &net.ListenConfig{}
91 }
92
93 return &Fds{
94 inherited: inherited,
95 used: make(map[fileName]*file),
96 lc: lc,
97 }
98}
99
100func (f *Fds) newListener(network, addr string) (net.Listener, error) {
101 return f.lc.Listen(context.Background(), network, addr)

Callers 10

BenchmarkUpgradeFunction · 0.85
newUpgraderFunction · 0.85
TestFdsAddListenerFunction · 0.85
TestFdsAddPacketConnFunction · 0.85
TestFdsListenFunction · 0.85
TestFdsRemoveUnixFunction · 0.85
TestFdsConnFunction · 0.85
TestFdsFileFunction · 0.85
TestFdsFilesFunction · 0.85

Calls

no outgoing calls

Tested by 9

BenchmarkUpgradeFunction · 0.68
TestFdsAddListenerFunction · 0.68
TestFdsAddPacketConnFunction · 0.68
TestFdsListenFunction · 0.68
TestFdsRemoveUnixFunction · 0.68
TestFdsConnFunction · 0.68
TestFdsFileFunction · 0.68
TestFdsFilesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…