package tcpinfo
import "tailscale.com/net/tcpinfo"
Package tcpinfo provides platform-agnostic accessors to information about a TCP connection (e.g. RTT, MSS, etc.).
Index ¶
Variables ¶
var ( ErrNotTCP = errors.New("tcpinfo: not a TCP conn") ErrUnimplemented = errors.New("tcpinfo: unimplemented") )
Functions ¶
func RTT ¶
RTT returns the RTT for the given net.Conn.
If the net.Conn is not a *net.TCPConn and cannot be unwrapped into one, then ErrNotTCP will be returned. If retrieving the RTT is not supported on the current platform, ErrUnimplemented will be returned.
Source Files ¶
tcpinfo.go tcpinfo_linux.go
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 day ago –
Tools for package owners.