IPtProxy

package
v0.0.0-...-868a476 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputPacket

func InputPacket(data []byte)

Write IP packets to the lwIP stack. Call this function in the main loop of the VpnService in Java/Kotlin, which should reads packets from the TUN fd.

func NewUDPHandler

func NewUDPHandler() core.UDPConnHandler

func StartSocks

func StartSocks(packetFlow PacketFlow, proxyHost string, proxyPort int)

Start the lwIP stack

@param packetFlow an instance of the PacketFlow interface

@param proxyHost host IP address of SOCKS proxy

@param proxyPort port for local SOCKS proxy

func StopSocks

func StopSocks()

Types

type PacketFlow

type PacketFlow interface {
	// WritePacket should writes packets to the TUN fd.
	WritePacket(packet []byte)
}

PacketFlow should be implemented in Java/Kotlin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL