Documentation ¶
Index ¶
- type Conn
- func (m *Conn) Buffered() (n int)
- func (m *Conn) Close() error
- func (m *Conn) Flush() (n int, err error)
- func (m *Conn) LocalAddr() net.Addr
- func (m *Conn) Read(p []byte) (int, error)
- func (m *Conn) Reader() *bufio.Reader
- func (m *Conn) RemoteAddr() net.Addr
- func (m *Conn) SetDeadline(t time.Time) error
- func (m *Conn) SetReadDeadline(t time.Time) error
- func (m *Conn) SetWriteDeadline(t time.Time) error
- func (m *Conn) Write(p []byte) (nn int, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn wraps a net.Conn and provides buffered ability.
func (*Conn) Close ¶
Close closes the connection. Any blocked Read or Write operations will be unblocked and return errors.
func (*Conn) RemoteAddr ¶
RemoteAddr returns the remote network address.
func (*Conn) SetDeadline ¶
SetDeadline sets the read and write deadlines associated with the connection. It is equivalent to calling both SetReadDeadline and SetWriteDeadline.
func (*Conn) SetReadDeadline ¶
SetReadDeadline sets the deadline for future Read calls and any currently-blocked Read call.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline sets the deadline for future Write calls and any currently-blocked Write call.
Click to show internal directories.
Click to hide internal directories.