socks_proxy
socks_proxy copied to clipboard
[showcase] a build once run anywhere binary

prebuilt binary: main.com.gz supported: Linux, NetBSD, FreeBSD, OpenBSD, Mac OS X, Windows
2,19d1
< #include <sys/types.h>
< #include <stdio.h>
< #include <stdarg.h>
< #include <time.h>
< #include <errno.h>
< #include <unistd.h>
< #include <signal.h>
< #include <stdlib.h>
< #include <stdint.h>
< #include <string.h>
< #include <sys/socket.h>
< #include <sys/fcntl.h>
< #include <sys/stat.h>
< #include <netdb.h>
< #include <sys/select.h>
< #include <arpa/inet.h>
< #include <netinet/tcp.h>
< #include <pthread.h>
110c92,93
< buf += nread;
---
> char* buf_c = (char*)buf;
> buf_c += nread;
130c113,114
< buf += nwrite;
---
> char* buf_c = (char*)buf;
> buf_c += nwrite;