Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BUFFERSIZE = 8 * 1024 BufferPool = sync.Pool{ New: func() interface{} { return make([]byte, BUFFERSIZE) }, } )
Functions ¶
func CopyLink ¶
func CopyLink(dst, src io.ReadWriteCloser)
func EchoServer ¶
Types ¶
type TimeoutDialer ¶
type TimeoutDialer interface {
Dialer
DialTimeout(string, string, time.Duration) (net.Conn, error)
}
var DefaultTcp4Dialer TimeoutDialer = &Tcp4Dialer{}
var DefaultTcpDialer TimeoutDialer = &TcpDialer{}
Click to show internal directories.
Click to hide internal directories.