Documentation ¶
Index ¶
Constants ¶
View Source
const ( RemoteAddr = "&remoteAddr" LocalAddr = "&localAddr" Middle = "&middle" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ReadToBytes ¶
func (*Context) RemoteAddr ¶
type Dialer ¶
type Dialer struct { TcpMultiplex bool *Context Timeout time.Duration // contains filtered or unexported fields }
func (Dialer) Add ¶
func (m Dialer) Add(middle MiddleInterface)
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) SetControl ¶
func (*Listener) SetKeepAlive ¶
type MiddleInterface ¶
type PacketConn ¶
type PacketConn struct {
// contains filtered or unexported fields
}
func ListenPacket ¶
func ListenPacket(network, addr string, tcpMultiplex ...bool) (*PacketConn, error)
func (*PacketConn) ReadAll ¶
func (p *PacketConn) ReadAll() (*Context, error)
func (*PacketConn) ReadToBytes ¶
func (p *PacketConn) ReadToBytes() (data []byte, addr net.Addr, err error)
Click to show internal directories.
Click to hide internal directories.