tcp

package
Version: v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

Detect

Detect checks if a tcp address is connectable with specific timeout.

ok, err := tcp.Detect("www.google.com:443", time.Second)
fmt.Println(ok, err)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(addr string, timeout time.Duration) (bool, error)

Detect checks if a tcp address is connectable with specific timeout

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL