Documentation ¶
Index ¶
Constants ¶
View Source
const SO_ORIGINAL_DST = 80
SO_ORIGINAL_DST syscall and unix not contain
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UDPListener ¶
type UDPListener struct {
// contains filtered or unexported fields
}
UDPListener normal and TPROXY listener
func ListenUDP ¶
func ListenUDP(addr string) (udpListener *UDPListener, err error)
ListenUDP like net package
func (*UDPListener) LocalAddr ¶
func (u *UDPListener) LocalAddr() net.Addr
LocalAddr returns the local network address, if known.
func (*UDPListener) ReadFromUDPAddrPort ¶
func (u *UDPListener) ReadFromUDPAddrPort(buf []byte) (nread int, saddr, daddr netip.AddrPort, err error)
ReadFromUDPAddrPort like net package
func (*UDPListener) WriteToUDPAddrPort ¶
func (u *UDPListener) WriteToUDPAddrPort(buf []byte, saddr, daddr netip.AddrPort) (err error)
WriteToUDPAddrPort like net package
Click to show internal directories.
Click to hide internal directories.