simple netstack for android or ios
- cd $GOPATH/src
- go get github.com/Evan2698/chimney/cmd/client
- git clone https://github.com/Evan2698/netstackm.git
- gomobile bind -target=android -ldflags="-s -w" github.com/Evan2698/chimney/android
BTW: gomobile install:
-
call func StartNetstackService(fd int, socks string, dns string) to start service.
-
call StopNetStackService() to stop service .
gomobile automatically generates java code.