Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("netutil: connection not found")
Functions ¶
func AddrPairUserid ¶
AddrPairUserid returns the local userid who owns the TCP connection given by the local and remote ip:port (lipport and ripport, respectively). Returns ErrNotFound for the error if the TCP connection isn't found.
func ConnUserid ¶
ConnUserid returns the uid that owns the given localhost connection. The returned error is ErrNotFound if the connection wasn't found.
func HostPortToIP ¶
This fonction allows parsing of a TCPAddr without resolving names other than localhost. It will return an error instead of resolving.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.