Documentation ¶
Index ¶
- func NewConn(conn *net.UDPConn) net.PacketConn
- type Conn
- func (conn *Conn) Close() error
- func (conn *Conn) LocalAddr() net.Addr
- func (conn *Conn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (conn *Conn) RemoteAddr() net.Addr
- func (conn *Conn) SetDeadline(t time.Time) error
- func (conn *Conn) SetReadDeadline(t time.Time) error
- func (conn *Conn) SetWriteDeadline(t time.Time) error
- func (conn *Conn) WriteTo(p []byte, addr net.Addr) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn wraps an underlying UDPConn and batches stuff to it.
func (*Conn) RemoteAddr ¶
RemoteAddr returns the remote address.
func (*Conn) SetDeadline ¶
SetDeadline sets a deadline.
func (*Conn) SetReadDeadline ¶
SetReadDeadline sets a read deadline.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline sets a write deadline.
Click to show internal directories.
Click to hide internal directories.