Documentation ¶
Overview ¶
Package iface provides access to network connection operations via file descriptor. The implementation MUST be correct by inspection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetInfo ¶
type NetInfo interface { GetUUID(fp *os.File) (string, error) GetBBRInfo(fp *os.File) (inetdiag.BBRInfo, error) GetTCPInfo(fp *os.File) (*tcp.LinuxTCPInfo, error) }
NetInfo provides access to network connection metadata.
type RealConnInfo ¶
type RealConnInfo struct{}
RealConnInfo implements both the ConnFile and NetInfo interfaces.
func (*RealConnInfo) DupFile ¶
DupFile returns the corresponding *os.File. Note that the returned *os.File is a dup() of the original, hence you now have ownership of two objects that you need to remember to defer Close() of.
func (*RealConnInfo) GetBBRInfo ¶
GetBBRInfo returns BBRInfo for the given file pointer.
func (*RealConnInfo) GetTCPInfo ¶
func (f *RealConnInfo) GetTCPInfo(fp *os.File) (*tcp.LinuxTCPInfo, error)
GetTCPInfo returns TCPInfo for the given file pointer.
Click to show internal directories.
Click to hide internal directories.