MCPcopy Create free account
hub / github.com/One-com/gone / InheritNamedPacketConn

Function InheritNamedPacketConn

sd/net.go:98–114  ·  view source on GitHub ↗

InheritNamedPacketConn returns a net.Listener and its systemd name passing the tests (and name criteria) provided. If there's no inherited FD which can be used the returned listener will be nil. The returned packetconn will be Export'ed by the sd library. Call Forget() to undo the export.

(wantName string, tests ...FileTest)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NamedListenUnixgramFunction · 0.85

Calls 3

FileWithFunction · 0.85
ExportFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected