Giter Club home page Giter Club logo

3proxy's Introduction

3proxy is a tiny proxy server.

I use its http proxy feature in an Android application, it works in a JNI thread. Here is the JNI part code.

About 3proxy:

3Proxy tiny free proxy server is really tiny cross-platform (Win32/Win64&Unix) freeware proxy servers set. It includes HTTP proxy with HTTPS and FTP support, SOCKSv4/SOCKSv4.5/SOCKSv5 proxy (socks/socks.exe), POP3 proxy, SMTP proxy, AIM/ICQ proxy (icqpr/icqpr.exe), MSN messenger / Live messenger proxy (msnpr/msnpr.exe), FTP proxy, caching DNS proxy, TCP and UDP portmappers.

3proxy is forked from: http://www.3proxy.ru/download/ ,

Fetch history:

What did I do

I'm Thomas Zhaohttp://www.thomaszhao.cn.

I use it in an Android application, it works as a JNI thread. So here is the JNI part code:

Features List:

  • Http Proxy runs in a JNI thread.
  • Works well with Android VpnService.

TODO List:

  • nothing.

How to use it in your project?

How to Compile?

I hope it should work in this way:

1): fetch this code into your project as a git submodule:

git submodule add  -b thomas/android_jni   -- "[email protected]:thomaszhao/3proxy.git"  "<your project>/jni"
  1. then in your project's jni/Android.mk file:

    LOCAL_PATH := $(call my-dir) include ../external/3proxy/Android.mk

  2. Wrapper your java like this:

public class ThreeProxy {
	static {
		java.lang.System.loadLibrary("3proxy");
	}

	// 3proxy's main() function
	public static native int RunThreeProxy(String[] cmd);

	// 3proxy's reload signal
	public static native void Reload();

	// 3proxy's terminate signal
	public static native void Terminate();
}

  1. Modify JNI_CLASS_PREFIX macro to match yours in 3proxy/Android.mk

  2. then it can be compiled into lib3proxy.so.

How to tune?

  • Macro THREE_PROXY_JNI: this macro wraps all the modification aims to work as JNI thread.
  • Macro THREE_PROXY_JNI_VPNSERVICE: this macro wraps codes for working with Android VpnService.
  • Macro JNI_CLASS_PREFIX must match your java code path.

A full usage:

TODO

3proxy's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.