version 1.76, 2004/12/10 16:51:31 |
version 1.77, 2005/02/08 15:26:23 |
|
|
void help(void); |
void help(void); |
int local_listen(char *, char *, struct addrinfo); |
int local_listen(char *, char *, struct addrinfo); |
void readwrite(int); |
void readwrite(int); |
int remote_connect(char *, char *, struct addrinfo); |
int remote_connect(const char *, const char *, struct addrinfo); |
int socks_connect(char *, char *, struct addrinfo, char *, char *, |
int socks_connect(const char *, const char *, struct addrinfo, const char *, const char *, |
struct addrinfo, int); |
struct addrinfo, int); |
int udptest(int); |
int udptest(int); |
int unix_connect(char *); |
int unix_connect(char *); |
|
|
socklen_t len; |
socklen_t len; |
struct sockaddr_storage cliaddr; |
struct sockaddr_storage cliaddr; |
char *proxy; |
char *proxy; |
char *proxyhost = "", *proxyport = NULL; |
const char *proxyhost = "", *proxyport = NULL; |
struct addrinfo proxyhints; |
struct addrinfo proxyhints; |
|
|
ret = 1; |
ret = 1; |
|
|
* port or source address if needed. Returns -1 on failure. |
* port or source address if needed. Returns -1 on failure. |
*/ |
*/ |
int |
int |
remote_connect(char *host, char *port, struct addrinfo hints) |
remote_connect(const char *host, const char *port, struct addrinfo hints) |
{ |
{ |
struct addrinfo *res, *res0; |
struct addrinfo *res, *res0; |
int s, error, x = 1; |
int s, error, x = 1; |