Author: samisa Date: Wed Oct 3 01:28:30 2007 New Revision: 581524 URL: http://svn.apache.org/viewvc?rev=581524&view=rev Log: Fixed the log file names and the port numbers. Also added macros for those values so that they could be configured during compile time if needed
Modified: webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c Modified: webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c?rev=581524&r1=581523&r2=581524&view=diff ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c (original) +++ webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c Wed Oct 3 01:28:30 2007 @@ -30,6 +30,14 @@ #include <axiom_xml_reader.h> #include <axutil_version.h> +#ifndef AXIS2_HTTP_SERVER_LOG_FILE_NAME +#define AXIS2_HTTP_SERVER_LOG_FILE_NAME "axis2_http_server.log" +#endif + +#ifndef AXIS2_HTTP_SERVER_PORT +#define AXIS2_HTTP_SERVER_PORT 9090 +#endif + axutil_env_t *system_env = NULL; axis2_transport_receiver_t *server = NULL; AXIS2_IMPORT extern int axis2_http_socket_read_timeout; @@ -101,8 +109,8 @@ extern int optopt; int c; axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG; - const axis2_char_t *log_file = "axis2.log"; - int port = 9090; + const axis2_char_t *log_file = AXIS2_HTTP_SERVER_LOG_FILE_NAME; + int port = AXIS2_HTTP_SERVER_PORT; const axis2_char_t *repo_path = "../"; /* Set the service URL prefix to be used. This could default to services if not @@ -207,7 +215,7 @@ fprintf(stdout, " [-l LOG_LEVEL]"); fprintf(stdout, " [-f LOG_FILE]\n"); fprintf(stdout, " Options :\n"); - fprintf(stdout, "\t-p PORT \t port number to use, default port is 9090\n"); + fprintf(stdout, "\t-p PORT \t port number to use, default port is %d\n", AXIS2_HTTP_SERVER_PORT); fprintf(stdout, "\t-r REPO_PATH \t repository path, default is ../\n"); fprintf(stdout, "\t-t TIMEOUT\t socket read timeout, default is 30 seconds\n"); Modified: webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c?rev=581524&r1=581523&r2=581524&view=diff ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c (original) +++ webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c Wed Oct 3 01:28:30 2007 @@ -29,6 +29,14 @@ #include <ctype.h> #include <axiom_xml_reader.h> +#ifndef AXIS2_TCP_SERVER_LOG_FILE_NAME +#define AXIS2_TCP_SERVER_LOG_FILE_NAME "axis2_tcp_server.log" +#endif + +#ifndef AXIS2_TCP_SERVER_PORT +#define AXIS2_TCP_SERVER_PORT 9091 +#endif + axutil_env_t *system_env = NULL; axis2_transport_receiver_t *server = NULL; int axis2_tcp_socket_read_timeout = 60000; @@ -95,8 +103,8 @@ extern int optopt; int c; axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG; - const axis2_char_t *log_file = "axis2.log"; - int port = 9090; + const axis2_char_t *log_file = AXIS2_TCP_SERVER_LOG_FILE_NAME; + int port = AXIS2_TCP_SERVER_PORT; const axis2_char_t *repo_path = "../"; while ((c = AXIS2_GETOPT(argc, argv, ":p:r:ht:l:f:")) != -1) @@ -192,7 +200,7 @@ fprintf(stdout, " [-l LOG_LEVEL]"); fprintf(stdout, " [-f LOG_FILE]\n"); fprintf(stdout, " Options :\n"); - fprintf(stdout, "\t-p PORT \t port number to use, default port is 9090\n"); + fprintf(stdout, "\t-p PORT \t port number to use, default port is %d\n", AXIS2_TCP_SERVER_PORT); fprintf(stdout, "\t-r REPO_PATH \t repository path, default is ../\n"); fprintf(stdout, "\t-t TIMEOUT\t socket read timeout, default is 30 seconds\n"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]