tcp

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dialer = &net.Dialer{Timeout: time.Second * 10}

Functions

func DialTCP

func DialTCP(p *xnet.Point) (conn net.Conn, err error)

func DialUDP

func DialUDP(p *xnet.Point) (conn net.Conn, err error)

func NewServer

func NewServer() transport.Server

Types

type TLSDialer

type TLSDialer struct {
	transport.HttpDialer
}

func NewTLSDialer

func NewTLSDialer() *TLSDialer

func (TLSDialer) Dial

func (d TLSDialer) Dial(p *xnet.Point) (conn net.Conn, err error)

Jump to

Keyboard shortcuts

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