Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
[privoxy.git] / gateway.c
similarity index 92%
rename from src/gateway.c
rename to gateway.c
index 22f9f7b..3a03850 100644 (file)
+++ b/gateway.c
@@ -1,7 +1,7 @@
-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
@@ -34,9 +34,6 @@ const char gateway_rcs[] = "$Id: gateway.c,v 2.0 2002/06/04 14:34:21 jongfoster
  *
  * 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
  *
@@ -161,38 +158,29 @@ static jb_socket socks4_connect(const struct forward_spec * fwd,
                                 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";