dialer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTLS

func AddTLS(conn network.Conn, tlsConfig *tls.Config) (network.Conn, error)

AddTLS is used to add tls to a persistent connection, i.e. negotiate a TLS session. If conn is already a TLS tunnel, this function establishes a nested TLS session inside the encrypted channel.

func DialConnection

func DialConnection(network, address string, timeout time.Duration, tlsConfig *tls.Config) (conn network.Conn, err error)

func DialTimeout

func DialTimeout(network, address string, timeout time.Duration, tlsConfig *tls.Config) (conn net.Conn, err error)

func SetDialer

func SetDialer(dialer network.Dialer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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