Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTCPControls ¶
func ApplyTCPControls(listener *net.TCPListener) error
ApplyTCPControls applies all the recommended controls to the TCP listener.
func ApplyUDPControls ¶
ApplyUDPControls applies all the recommended controls to the UDP connection.
Types ¶
type Control ¶
Control is the Control function used by net.Dialer.
func ProtectPath ¶
ProtectPath does nothing outside Android platform.
func ReuseAddrPort ¶
func ReuseAddrPort() Control
ReuseAddrPort sets SO_REUSEADDR and SO_REUSEPORT options to a given connection.
type RawControl ¶
type RawControl = func(fd uintptr)
RawControl is the Control function used by syscall.RawConn.
func ProtectPathRaw ¶
func ProtectPathRaw(protectPath string) RawControl
func ReuseAddrPortRaw ¶
func ReuseAddrPortRaw() RawControl
type RawControlErr ¶
RawControlErr returns an error with RawControl.
func ProtectPathRawErr ¶
func ProtectPathRawErr(protectPath string) RawControlErr
func ReuseAddrPortRawErr ¶
func ReuseAddrPortRawErr() RawControlErr
Click to show internal directories.
Click to hide internal directories.