proxy.h

来自「vxworks下的sock5代理实现,c++编写」· C头文件 代码 · 共 38 行

H
38
字号
#include <stdio.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <errno.h>#include <fcntl.h>#include <netdb.h>#include <signal.h>#include <sys/wait.h>#include <unistd.h>#include <string.h>#include <stdlib.h>/*#include <sys/time.h>*/#include <sys/stat.h>#define PROXY_PORT 1080struct cli_method{	char version;	char nmethods;};struct ser_method{	char version;	char method;};struct cli_req{	char ver;	char cmd;	char rsv;	char atyp;	struct in_addr ipv4addr;	ushort port;};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?