Documentation ¶
Index ¶
- type Net
- func (tnet *Net) Dial(network, address string) (net.Conn, error)
- func (tnet *Net) DialContext(ctx context.Context, network, address string) (net.Conn, 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) DialPing(laddr, raddr *PingAddr) (*PingConn, error)
- func (net *Net) DialPingAddr(laddr, raddr netip.Addr) (*PingConn, 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) ListenPing(laddr *PingAddr) (*PingConn, error)
- func (net *Net) ListenPingAddr(laddr netip.Addr) (*PingConn, 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)
- func (tnet *Net) LookupContextHost(ctx context.Context, host string) ([]string, error)
- func (net *Net) LookupHost(host string) (addrs []string, err error)
- type PingAddr
- type PingConn
- func (pc *PingConn) Close() error
- func (pc *PingConn) LocalAddr() net.Addr
- func (pc *PingConn) Read(p []byte) (n int, err error)
- func (pc *PingConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (pc *PingConn) RemoteAddr() net.Addr
- func (pc *PingConn) SetDeadline(t time.Time) error
- func (pc *PingConn) SetReadDeadline(t time.Time) error
- func (pc *PingConn) SetWriteDeadline(t time.Time) error
- func (pc *PingConn) Write(p []byte) (n int, err error)
- func (pc *PingConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Net ¶
type Net netTun
func CreateNetTUN ¶
func (*Net) DialContext ¶
func (*Net) DialContextTCP ¶
func (*Net) DialContextTCPAddrPort ¶ added in v1.5.10
func (*Net) DialPingAddr ¶ added in v1.5.10
func (*Net) DialTCPAddrPort ¶ added in v1.5.10
func (*Net) DialUDPAddrPort ¶ added in v1.5.10
func (*Net) ListenPing ¶ added in v1.5.10
func (*Net) ListenPingAddr ¶ added in v1.5.10
func (*Net) ListenTCPAddrPort ¶ added in v1.5.10
func (*Net) ListenUDPAddrPort ¶ added in v1.5.10
func (*Net) LookupContextHost ¶
type PingAddr ¶ added in v1.5.10
type PingAddr struct {
// contains filtered or unexported fields
}
func PingAddrFromAddr ¶ added in v1.5.10
type PingConn ¶ added in v1.5.10
type PingConn struct {
// contains filtered or unexported fields
}
func (*PingConn) RemoteAddr ¶ added in v1.5.10
func (*PingConn) SetReadDeadline ¶ added in v1.5.10
func (*PingConn) SetWriteDeadline ¶ added in v1.5.10
Click to show internal directories.
Click to hide internal directories.