Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tun2Socket ¶
type Tun2Socket struct {
// contains filtered or unexported fields
}
func StartTun2Socket ¶
func StartTun2Socket(device io.ReadWriteCloser, address netip.Prefix, portal netip.Addr) (*Tun2Socket, error)
noinspection GoUnusedExportedFunction
func (*Tun2Socket) Close ¶
func (t *Tun2Socket) Close() error
func (*Tun2Socket) TCP ¶
func (t *Tun2Socket) TCP() *nat.TCP
func (*Tun2Socket) UDP ¶
func (t *Tun2Socket) UDP() *nat.UDP
Click to show internal directories.
Click to hide internal directories.