Documentation
¶
Index ¶
- func NewListener(conn net.PacketConn, addr net.Addr, backlog, dataQueueSize, dataBufferSize int, ...) net.Listener
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) IsIdle() bool
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(b []byte) (n int, err error)
- func (c *Conn) ReadFrom(b []byte) (n int, addr net.Addr, err error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetIdle(idle bool)
- func (c *Conn) Write(b []byte) (n int, err error)
- func (c *Conn) WriteQueue(b []byte) error
- type ConnPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct { net.PacketConn // contains filtered or unexported fields }
Conn is a server side connection for UDP client peer, it implements net.Conn and net.PacketConn.
func (*Conn) RemoteAddr ¶
func (*Conn) WriteQueue ¶
type ConnPool ¶
type ConnPool struct {
// contains filtered or unexported fields
}
func NewConnPool ¶
Click to show internal directories.
Click to hide internal directories.