You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fu...@apache.org on 2004/07/30 21:57:47 UTC

cvs commit: jakarta-tomcat-connectors/ajp/ajplib/test ajp.h testajp.c

fuankg      2004/07/30 12:57:47

  Modified:    ajp/ajplib/test ajp.h testajp.c
  Log:
  introduce default host and port.
  
  Revision  Changes    Path
  1.20      +7 -0      jakarta-tomcat-connectors/ajp/ajplib/test/ajp.h
  
  Index: ajp.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/ajp.h,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ajp.h	30 Jul 2004 18:01:11 -0000	1.19
  +++ ajp.h	30 Jul 2004 19:57:47 -0000	1.20
  @@ -40,6 +40,13 @@
   #include <arpa/inet.h>
   #endif
   
  +#define AJP13_DEF_HOST "127.0.0.1"
  +#ifdef NETWARE
  +#define AJP13_DEF_PORT 9009     /* default to 9009 since 8009 is used by OS */
  +#else
  +#define AJP13_DEF_PORT 8009
  +#endif
  +
   #if APR_CHARSET_EBCDIC
   
   #define USE_CHARSET_EBCDIC
  
  
  
  1.11      +1 -1      jakarta-tomcat-connectors/ajp/ajplib/test/testajp.c
  
  Index: testajp.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/testajp.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- testajp.c	30 Jul 2004 19:18:59 -0000	1.10
  +++ testajp.c	30 Jul 2004 19:57:47 -0000	1.11
  @@ -208,7 +208,7 @@
        */
   
       /* 1. Obtain a connection to backend    */
  -    if ((rc = connect_to_backend(&sock, &con, "127.0.0.1", 8009,
  +    if ((rc = connect_to_backend(&sock, &con, AJP13_DEF_HOST, AJP13_DEF_PORT,
               main_server, r->pool)) != APR_SUCCESS) {
           ap_log_error(APLOG_MARK, APLOG_ERR, rc, NULL, "connect_to_backend");
           rv = -1;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org