Go to file
2020-02-13 15:33:38 +08:00
conf.c eopll rewrite 2020-01-21 19:48:05 +08:00
conf.h eopll rewrite 2020-01-21 19:48:05 +08:00
CProxy.ini Get host error, kill process error. 2020-02-13 15:33:38 +08:00
CProxy.ini.explain eopll rewrite 2020-01-21 19:48:05 +08:00
help.c eopll rewrite 2020-01-21 19:48:05 +08:00
help.h eopll rewrite 2020-01-21 19:48:05 +08:00
http.c eopll rewrite 2020-01-21 19:48:05 +08:00
http.h eopll rewrite 2020-01-21 19:48:05 +08:00
kill.c Get host error, kill process error. 2020-02-13 15:33:38 +08:00
kill.h Get host error, kill process error. 2020-02-13 15:33:38 +08:00
Makefile Get host error, kill process error. 2020-02-13 15:33:38 +08:00
picohttpparser.c eopll rewrite 2020-01-21 19:48:05 +08:00
picohttpparser.h eopll rewrite 2020-01-21 19:48:05 +08:00
proxy.c Get host error, kill process error. 2020-02-13 15:33:38 +08:00
proxy.h eopll rewrite 2020-01-21 19:48:05 +08:00
README.md eopll rewrite 2020-01-21 19:48:05 +08:00
request.c Get host error, kill process error. 2020-02-13 15:33:38 +08:00
request.h eopll rewrite 2020-01-21 19:48:05 +08:00
timeout.c eopll rewrite 2020-01-21 19:48:05 +08:00
timeout.h eopll rewrite 2020-01-21 19:48:05 +08:00

CProxy

EPOLL多路复用IO, Android/Linux本地二级代理.  
可以修改HTTP协议消息头(request).  
可以修改HTTP协议CONNECT方法消息头.  

Build

git clone https://github.com/niuyuling/cproxy.git  
git clone https://github.com/ndevilla/iniparser.git  
cd iniparser  
make  
cd ../cproxy  
make clean; make  

windows 10子系统交叉编译:  
apt-get install gcc-aarch64-linux-gnu  
make clean; CROSS_COMPILE=aarch64-linux-gnu- make  

Help Information

./CProxy -h
CProxy proxy server
Author: aixiao@aixiao.me
Usage: [-?hpt] [-s signal] [-c filename]

Options:
    -?,-h       : help information
    -p          : process number, default 2 process
    -t          : timeout minute, default is no timeout
    -s signal   : send signal to a master process: stop, quit, restart, reload, status
    -c filename : set configuration file (default: cproxy.ini)

Jan 13 2020 19:56:06 Compile、link.

#启动
./CProxy -c CProxy.ini
#关闭
./CProxy -s stop
#重启
./CProxy -s reload -c CProxy.ini
or
./CProxy -s restart -c CProxy.ini
#状态
./CProxy -s status