-const char gateway_rcs[] = "$Id: gateway.c,v 2.0 2002/06/04 14:34:21 jongfoster Exp $";
+const char gateway_rcs[] = "$Id: gateway.c,v 1.16 2002/05/12 21:36:29 jongfoster Exp $";
/*********************************************************************
*
- * File : $Source: /cvsroot/ijbswa/current/src/gateway.c,v $
+ * File : $Source: /cvsroot/ijbswa/current/Attic/gateway.c,v $
*
* Purpose : Contains functions to connect to a server, possibly
* using a "forwarder" (i.e. HTTP proxy and/or a SOCKS4
*
* Revisions :
* $Log: gateway.c,v $
- * Revision 2.0 2002/06/04 14:34:21 jongfoster
- * Moving source files to src/
- *
* Revision 1.16 2002/05/12 21:36:29 jongfoster
* Correcting function comments
*
struct client_state *csp);
-/** SOCKS command code. */
#define SOCKS_REQUEST_GRANTED 90
-
-/** SOCKS command code. */
#define SOCKS_REQUEST_REJECT 91
-
-/** SOCKS command code. */
#define SOCKS_REQUEST_IDENT_FAILED 92
-
-/** SOCKS command code. */
#define SOCKS_REQUEST_IDENT_CONFLICT 93
-
-/** Structure of a socks client operation */
+/* structure of a socks client operation */
struct socks_op {
- unsigned char vn; /**< Socks version number */
- unsigned char cd; /**< Command code */
- unsigned char dstport[2]; /**< Destination port */
- unsigned char dstip[4]; /**< Destination address */
- unsigned char userid; /**< First byte of userid */
+ unsigned char vn; /* socks version number */
+ unsigned char cd; /* command code */
+ unsigned char dstport[2]; /* destination port */
+ unsigned char dstip[4]; /* destination address */
+ unsigned char userid; /* first byte of userid */
/* more bytes of the userid follow, terminated by a NULL */
};
-/** Structure of a socks server reply */
+/* structure of a socks server reply */
struct socks_reply {
- unsigned char vn; /**< Socks version number */
- unsigned char cd; /**< Command code */
- unsigned char dstport[2]; /**< Destination port */
- unsigned char dstip[4]; /**< Destination address */
+ unsigned char vn; /* socks version number */
+ unsigned char cd; /* command code */
+ unsigned char dstport[2]; /* destination port */
+ unsigned char dstip[4]; /* destination address */
};
-/** The SOCKS user ID to use */
static const char socks_userid[] = "anonymous";