version 1.1, 2001/09/02 18:45:41 |
version 1.2, 2001/10/28 19:45:17 |
|
|
/* $OpenBSD$ */ |
* $OpenBSD$ */ |
|
|
/* |
/* |
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved. |
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved. |
|
|
socks_connect (char *host, char *port, struct addrinfo hints, |
socks_connect (char *host, char *port, struct addrinfo hints, |
char *proxyhost, char *proxyport, struct addrinfo proxyhints) |
char *proxyhost, char *proxyport, struct addrinfo proxyhints) |
{ |
{ |
char *proxyport_default; |
|
int proxyfd; |
int proxyfd; |
unsigned char buf[SOCKS_MAXCMDSZ]; |
unsigned char buf[SOCKS_MAXCMDSZ]; |
ssize_t cnt; |
ssize_t cnt; |