tcp

package
Version: v0.0.0-...-3ab4a19 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoTCPProbe

func DoTCPProbe(addr string, timeout time.Duration) (probe.Result, error)

DoTCPProbe checks that a TCP socket to the address can be opened. If the socket can be opened, it returns Success If the socket fails to open, it returns Failure. This is exported because some other packages may want to do direct TCP probes.

Types

type TCPProber

type TCPProber struct{}

func New

func New() TCPProber

func (TCPProber) Probe

func (pr TCPProber) Probe(host string, port int, timeout time.Duration) (probe.Result, error)

Source Files

Jump to

Keyboard shortcuts

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