Versions in this module Expand all Collapse all v1 v1.31.1 Nov 1, 2023 v1.31.0 Oct 20, 2023 Changes in this version + func NewDefaultBind(controlFns []func(network, address string, c syscall.RawConn) error, ...) conn.Bind + func NewStdNetBind(controlFns []func(network, address string, c syscall.RawConn) error, ...) wg.Bind + type Net netTun + func CreateNetTUN(localAddresses, dnsServers []netip.Addr, mtu int) (tun.Device, *Net, error) + func (net *Net) DialContextTCP(ctx context.Context, addr *net.TCPAddr) (*gonet.TCPConn, error) + func (net *Net) DialContextTCPAddrPort(ctx context.Context, addr netip.AddrPort) (*gonet.TCPConn, error) + func (net *Net) DialTCP(addr *net.TCPAddr) (*gonet.TCPConn, error) + func (net *Net) DialTCPAddrPort(addr netip.AddrPort) (*gonet.TCPConn, error) + func (net *Net) DialUDP(laddr, raddr *net.UDPAddr) (*gonet.UDPConn, error) + func (net *Net) DialUDPAddrPort(laddr, raddr netip.AddrPort) (*gonet.UDPConn, error) + func (net *Net) ListenTCP(addr *net.TCPAddr) (*gonet.TCPListener, error) + func (net *Net) ListenTCPAddrPort(addr netip.AddrPort) (*gonet.TCPListener, error) + func (net *Net) ListenUDP(laddr *net.UDPAddr) (*gonet.UDPConn, error) + func (net *Net) ListenUDPAddrPort(laddr netip.AddrPort) (*gonet.UDPConn, error) + type StdNetBind struct + func (*StdNetBind) ParseEndpoint(s string) (wg.Endpoint, error) + func (s *StdNetBind) BatchSize() int + func (s *StdNetBind) Close() error + func (s *StdNetBind) Open(uport uint16) ([]wg.ReceiveFunc, uint16, error) + func (s *StdNetBind) Send(bufs [][]byte, endpoint wg.Endpoint) error + func (s *StdNetBind) SetMark(mark uint32) error + func (s *StdNetBind) UpdateControlFns(controlFns []func(network, address string, c syscall.RawConn) error)