Author: jfrederic.clere(a)jboss.com
Date: 2009-02-26 09:23:56 -0500 (Thu, 26 Feb 2009)
New Revision: 2323
Modified:
trunk/mod_cluster/test/native/Advertise.c
trunk/mod_cluster/test/native/Makefile
Log:
Investigate on cluster10...
Modified: trunk/mod_cluster/test/native/Advertise.c
===================================================================
--- trunk/mod_cluster/test/native/Advertise.c 2009-02-26 10:06:51 UTC (rev 2322)
+++ trunk/mod_cluster/test/native/Advertise.c 2009-02-26 14:23:56 UTC (rev 2323)
@@ -34,6 +34,8 @@
apr_status_t rv;
apr_sockaddr_t *ma_mgroup_sa;
apr_socket_t *ma_mgroup_socket;
+ char buf[20];
+ apr_size_t n;
apr_initialize();
atexit(apr_terminate);
@@ -57,7 +59,12 @@
return 1;
}
-
-
+ n = apr_snprintf(buf, 20, "Advertize !!!\n");
+ rv = apr_socket_sendto(ma_mgroup_socket,
+ ma_mgroup_sa, 0, buf, &n);
+ if (rv != APR_SUCCESS) {
+ printf("apr_socket_sendto failed %d %s\n", n, apr_strerror(rv, buf,
20));
+ return 1;
+ }
return 0;
}
Modified: trunk/mod_cluster/test/native/Makefile
===================================================================
--- trunk/mod_cluster/test/native/Makefile 2009-02-26 10:06:51 UTC (rev 2322)
+++ trunk/mod_cluster/test/native/Makefile 2009-02-26 14:23:56 UTC (rev 2323)
@@ -1,5 +1,6 @@
-APACHE_BASE = /home/jfclere/APACHE-2.2.9
+APACHE_BASE = /home/jbento/modclusterdemo/opt/jboss/httpd/
+APACHE_INC = /home/jbento/modclusterdemo/opt/jboss/httpd/include/httpd
Advertise: Advertise.c
- cc -c -I$(APACHE_BASE)/include Advertise.c
+ cc -c -I$(APACHE_INC) Advertise.c
cc -o Advertise Advertise.o -L$(APACHE_BASE)/lib -lapr-1
Show replies by date