tcp

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

gonetx/tcp

tcp is a package providing utility functions for tcp.

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

Overview

Package tcp is a library providing utility functions of tcp.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL