MCPcopy
hub / github.com/WireGuard/wireguard-go / Close

Method Close

conn/conn.go:42–42  ·  view source on GitHub ↗

Close closes the Bind listener. All fns returned by Open must return net.ErrClosed after a call to Close.

()

Source from the content-addressed store, hash-verified

40 // Close closes the Bind listener.
41 // All fns returned by Open must return net.ErrClosed after a call to Close.
42 Close() error
43
44 // SetMark sets the mark for each packet sent through this Bind.
45 // This mark is passed to the kernel as the socket option SO_MARK.

Callers 15

mainFunction · 0.65
mainFunction · 0.65
Test_listenConfigFunction · 0.65
OpenMethod · 0.65
CloseMethod · 0.65
CloseMethod · 0.65
genTestPairFunction · 0.65
TestUpDownFunction · 0.65
CloseMethod · 0.65
closeBindLockedFunction · 0.65
BindUpdateMethod · 0.65

Implementers 4

StdNetBindconn/bind_std.go
WinRingBindconn/bind_windows.go
ChannelBindconn/bindtest/bindtest.go
fakeBindSizeddevice/device_test.go

Calls

no outgoing calls

Tested by 15

Test_listenConfigFunction · 0.52
genTestPairFunction · 0.52
TestUpDownFunction · 0.52
TestNoiseHandshakeFunction · 0.52
TestPingPongFunction · 0.52
TestDialListenerTimesOutFunction · 0.52
getConnectionFunction · 0.52
TestReadTimeoutFunction · 0.52