client

package
v0.0.0-...-1f72ab9 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KCPConnectHost

func KCPConnectHost(hostAndPort string, config kcpcfg.KCPConfigArgs) (conn net.Conn, err error)

func TCPConnectHost

func TCPConnectHost(hostAndPort string, timeout int) (conn net.Conn, err error)

func TCPSConnectHost

func TCPSConnectHost(hostAndPort string, method, password string, compress bool, timeout int) (conn net.Conn, err error)

func TOUConnectHost

func TOUConnectHost(hostAndPort string, method, password string, compress bool, timeout int) (conn net.Conn, err error)

func TlsConfig

func TlsConfig(certBytes, keyBytes, caCertBytes []byte) (conf *tls.Config, err error)

func TlsConnect

func TlsConnect(host string, port, timeout int, certBytes, keyBytes, caCertBytes []byte) (conn tls.Conn, err error)

func TlsConnectHost

func TlsConnectHost(host string, timeout int, certBytes, keyBytes, caCertBytes []byte) (conn tls.Conn, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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