Documentation
¶
Index ¶
- func CR(port int) (bool, error)
- func CheckLocal(port int, hosts ...string) (bool, error)
- func CheckRemote(host string, port int) (bool, error)
- func FL(port int) int
- func FindLocal(port int) int
- func SCL(port int) bool
- func SCR(host string, port int) bool
- func SFL(port int) string
- func ShortCheckLocal(port int) bool
- func ShortCheckRemote(host string, port int) bool
- func StringFindLocal(port int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CR ¶
CR is a shortened alias for CheckRemote, which returns true if a port on a remote server is open and false if appears to be closed or unavailable.
func CheckLocal ¶
CheckLocal determines if a port is *in use*. If a port is in use locally, it will return "true" if the port is used, and will return "false" if the port is unavailable. If it encounters an error, it will return true and the error. If it you pass it a list of hosts, it will return true if *any* of them is in use.
func CheckRemote ¶
CheckRemote tries to connect to a remote port, and returns false if it fails. If it fails because of a timeout it returns no error, but if it fails because of any other reason it returns false and the error.
func ShortCheckLocal ¶
ShortCheckLocal is CheckLocal but ignoring errors
func ShortCheckRemote ¶
ShortCheckRemote is CheckRemote but ignoring errors
func StringFindLocal ¶
Types ¶
This section is empty.