Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeadlineConnection ¶
type DeadlineConnection struct {
net.Conn
ReadDeadlineTimeout time.Duration
WriteDeadlineTimeout time.Duration
}
DeadlineConnection is an extension over the standard net.Conn, that makes it more convenient to read/write within a configurable timeout. It is essential in network communication where the network is unreliable.
Click to show internal directories.
Click to hide internal directories.