Documentation ¶
Overview ¶
Package deadlineconn implements net.Conn wrapper with configured deadlines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeadlineConn ¶
DeadlineConn - is a generic stream-oriented network connection supporting buffered reader and read/write timeout.
func New ¶
func New(c net.Conn) *DeadlineConn
New - creates a new connection object wrapping net.Conn with deadlines.
func (*DeadlineConn) Read ¶
func (c *DeadlineConn) Read(b []byte) (n int, err error)
Read - reads data from the connection using wrapped buffered reader.
func (*DeadlineConn) WithReadDeadline ¶
func (c *DeadlineConn) WithReadDeadline(d time.Duration) *DeadlineConn
WithReadDeadline sets a new read side net.Conn deadline.
func (*DeadlineConn) WithWriteDeadline ¶
func (c *DeadlineConn) WithWriteDeadline(d time.Duration) *DeadlineConn
WithWriteDeadline sets a new write side net.Conn deadline.
Click to show internal directories.
Click to hide internal directories.