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
Types ¶
type PacketFlow ¶
type PacketFlow interface { // WritePacket should writes packets to the TUN fd. WritePacket(packet []byte) }
PacketFlow should be implemented in Java/Kotlin.
Click to show internal directories.
Click to hide internal directories.