Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocols []*Protoent Services []*Servent )
These variables get populated from /etc/protocols and /etc/services respectively.
Functions ¶
Types ¶
type Protoent ¶
func GetProtoByName ¶
GetProtoByName returns the Protoent whose name or any of its aliases matches the argument.
func GetProtoByNumber ¶
GetProtoByNumber returns the Protoent for a given protocol number.
type Servent ¶
func GetServByName ¶
GetServByName returns the Servent for a given service name or alias and protocol. If the protocol is nil, the first service matching the service name is returned.
func GetServByPort ¶
GetServByPort returns the Servent for a given port number and protocol. If the protocol is nil, the first service matching the port number is returned.
Click to show internal directories.
Click to hide internal directories.