Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dialer ¶
func Dialer(dialTimeout, keepalivePeriod, timeout time.Duration) func(string, string) (net.Conn, error)
DeadlineConnDialer returns a net.Dialer (actual interface type unused because it is not covered by go1) which wraps all net.Conns in a deadlineConn with the specified |timeout|, applied to both, Read and Write calls. The dialing itself must be done within |dialTimeout| and TCP keepalive is enabled (if compiled with go1.2+) with a period of |keepalivePeriod|.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.