Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListener ¶
func NewListener(conn net.PacketConn, cfg *ListenConfig) net.Listener
Types ¶
type Conn ¶
type Conn interface { net.PacketConn io.Reader io.Writer ReadUDP WriteUDP xnet.SetBuffer xnet.SyscallConn xnet.RemoteAddr }
type ListenConfig ¶
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
func NewRelay ¶
func NewRelay(pc1, pc2 net.PacketConn) *Relay
func (*Relay) SetBufferSize ¶
Click to show internal directories.
Click to hide internal directories.