You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/07/19 05:38:39 UTC
svn commit: r557477 [6/11] - in
/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp: ./
common/ common/.deps/ receiver/ sender/ server/ server/simple_tcp_server/
server/simple_tcp_server/.deps/ util/ util/.deps/ util/.libs/
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.am?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.am (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.am Wed Jul 18 20:38:32 2007
@@ -0,0 +1,21 @@
+lib_LTLIBRARIES = libaxis2_http_receiver.la
+libaxis2_http_receiver_la_LIBADD=$(top_builddir)/util/src/libaxutil.la\
+ $(top_builddir)/src/core/transport/http/common/libaxis2_http_common.la
+
+
+libaxis2_http_receiver_la_SOURCES = tcp_receiver.c\
+ tcp_svr_thread.c
+
+
+libaxis2_http_receiver_la_LDFLAGS = -version-info $(VERSION_NO)
+
+INCLUDES = -I$(top_builddir)/include \
+ -I$(top_builddir)/src/core/transport\
+ -I$(top_builddir)/src/core/transport/http \
+ -I$(top_builddir)/src/core/description \
+ -I$(top_builddir)/src/core/context \
+ -I$(top_builddir)/src/core/phaseresolver \
+ -I$(top_builddir)/src/core/engine \
+ -I$(top_builddir)/src/core/deployment \
+ -I$(top_builddir)/util/include \
+ -I$(top_builddir)/axiom/include
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.in
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.in?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.in (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/Makefile.in Wed Jul 18 20:38:32 2007
@@ -0,0 +1,500 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../../../../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+subdir = src/core/transport/http/receiver
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libdir)"
+libLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libaxis2_http_receiver_la_DEPENDENCIES = \
+ $(top_builddir)/util/src/libaxutil.la \
+ $(top_builddir)/src/core/transport/http/common/libaxis2_http_common.la
+am_libaxis2_http_receiver_la_OBJECTS = http_receiver.lo \
+ http_svr_thread.lo
+libaxis2_http_receiver_la_OBJECTS = \
+ $(am_libaxis2_http_receiver_la_OBJECTS)
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(libaxis2_http_receiver_la_SOURCES)
+DIST_SOURCES = $(libaxis2_http_receiver_la_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+APACHE2BUILD = @APACHE2BUILD@
+APACHE2INC = @APACHE2INC@
+APRINC = @APRINC@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+AXIS2_LIBCURL_ENABLED_FALSE = @AXIS2_LIBCURL_ENABLED_FALSE@
+AXIS2_LIBCURL_ENABLED_TRUE = @AXIS2_LIBCURL_ENABLED_TRUE@
+AXIS2_SSL_ENABLED_FALSE = @AXIS2_SSL_ENABLED_FALSE@
+AXIS2_SSL_ENABLED_TRUE = @AXIS2_SSL_ENABLED_TRUE@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DICLIENT_DIR = @DICLIENT_DIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+GUTHTHILA_DIR = @GUTHTHILA_DIR@
+GUTHTHILA_LIBS = @GUTHTHILA_LIBS@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PARSER_CFLAGS = @PARSER_CFLAGS@
+PARSER_DIR = @PARSER_DIR@
+PARSER_LIBS = @PARSER_LIBS@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+RANLIB = @RANLIB@
+SAMPLES = @SAMPLES@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+TESTDIR = @TESTDIR@
+VERSION = @VERSION@
+VERSION_NO = @VERSION_NO@
+WRAPPER_DIR = @WRAPPER_DIR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+subdirs = @subdirs@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+lib_LTLIBRARIES = libaxis2_http_receiver.la
+libaxis2_http_receiver_la_LIBADD = $(top_builddir)/util/src/libaxutil.la\
+ $(top_builddir)/src/core/transport/http/common/libaxis2_http_common.la
+
+libaxis2_http_receiver_la_SOURCES = http_receiver.c\
+ http_svr_thread.c
+
+libaxis2_http_receiver_la_LDFLAGS = -version-info $(VERSION_NO)
+INCLUDES = -I$(top_builddir)/include \
+ -I$(top_builddir)/src/core/transport\
+ -I$(top_builddir)/src/core/transport/http \
+ -I$(top_builddir)/src/core/description \
+ -I$(top_builddir)/src/core/context \
+ -I$(top_builddir)/src/core/phaseresolver \
+ -I$(top_builddir)/src/core/engine \
+ -I$(top_builddir)/src/core/deployment \
+ -I$(top_builddir)/util/include \
+ -I$(top_builddir)/axiom/include
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/core/transport/http/receiver/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/core/transport/http/receiver/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libaxis2_http_receiver.la: $(libaxis2_http_receiver_la_OBJECTS) $(libaxis2_http_receiver_la_DEPENDENCIES)
+ $(LINK) -rpath $(libdir) $(libaxis2_http_receiver_la_LDFLAGS) $(libaxis2_http_receiver_la_OBJECTS) $(libaxis2_http_receiver_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_receiver.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_svr_thread.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+ for dir in "$(DESTDIR)$(libdir)"; do \
+ test -z "$$dir" || $(mkdir_p) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libLTLIBRARIES clean-libtool ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-exec \
+ install-exec-am install-info install-info-am \
+ install-libLTLIBRARIES install-man install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am uninstall-info-am \
+ uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/libaxis2_tcp_receiver.so
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/libaxis2_tcp_receiver.so?view=auto&rev=557477
==============================================================================
Binary file - no diff available.
Propchange: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/libaxis2_tcp_receiver.so
------------------------------------------------------------------------------
svn:executable = *
Propchange: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/libaxis2_tcp_receiver.so
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/s
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/s?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/s (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/s Wed Jul 18 20:38:32 2007
@@ -0,0 +1,9 @@
+gcc -ggdb3 -shared -o libaxis2_tcp_receiver.so *.c -I../.. -I$AXIS2C_HOME/include/axis2-1.1 -I ../ \
+-L$AXIS2C_HOME/lib -laxutil -laxis2_axiom \
+-L/home/dinesh/axis2c/src/core/transport/http/common/libaxis2_http_common.la \
+-L/home/dinesh/axis2c/src/core/transport/http/util/libaxis2_http_util.la \
+-laxis2_http_common
+
+cp libaxis2_tcp_receiver.so $AXIS2C_HOME/lib
+echo "copy to $AXIS2C_HOME/lib"
+
Propchange: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/s
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/simple_tcp_svr_conn.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/simple_tcp_svr_conn.c?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/simple_tcp_svr_conn.c (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/simple_tcp_svr_conn.c Wed Jul 18 20:38:32 2007
@@ -0,0 +1,240 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <axis2_simple_tcp_svr_conn.h>
+#include <axis2_tcp_transport.h>
+#include <axutil_string.h>
+#include <axutil_network_handler.h>
+#include <axis2_tcp_chunked_stream.h>
+#include <platforms/axutil_platform_auto_sense.h>
+
+struct axis2_simple_tcp_svr_conn
+{
+ int socket;
+ axutil_stream_t *stream;
+ axis2_char_t *buffer;
+};
+
+AXIS2_EXTERN axis2_simple_tcp_svr_conn_t *AXIS2_CALL
+axis2_simple_tcp_svr_conn_create(
+ const axutil_env_t *env,
+ int sockfd)
+{
+ axis2_simple_tcp_svr_conn_t *svr_conn = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+ svr_conn = (axis2_simple_tcp_svr_conn_t *)
+ AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_simple_tcp_svr_conn_t));
+
+ if (!svr_conn)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ svr_conn->socket = sockfd;
+ svr_conn->stream = NULL;
+ svr_conn->buffer = NULL;
+
+ if (-1 != svr_conn->socket)
+ {
+ svr_conn->stream = axutil_stream_create_socket(env,
+ svr_conn->socket);
+ if (!svr_conn->stream)
+ {
+ axis2_simple_tcp_svr_conn_free((axis2_simple_tcp_svr_conn_t *)
+ svr_conn, env);
+ return NULL;
+ }
+ }
+ return svr_conn;
+}
+
+AXIS2_EXTERN void AXIS2_CALL
+axis2_simple_tcp_svr_conn_free(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ axis2_simple_tcp_svr_conn_close(svr_conn, env);
+
+ AXIS2_FREE(env->allocator, svr_conn);
+
+ return;
+}
+
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_simple_tcp_svr_conn_close(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ axutil_stream_free(svr_conn->stream, env);
+ if (-1 != svr_conn->socket)
+ {
+ axutil_network_handler_close_socket(env, svr_conn->socket);
+ svr_conn->socket = -1;
+ }
+ return AXIS2_SUCCESS;
+}
+
+
+AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+axis2_simple_tcp_svr_conn_is_open(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ if (-1 != svr_conn->socket)
+ {
+ return AXIS2_TRUE;
+ }
+ else
+ {
+ return AXIS2_FALSE;
+ }
+ return AXIS2_FALSE;
+}
+
+
+AXIS2_EXTERN axutil_stream_t *AXIS2_CALL
+axis2_simple_tcp_svr_conn_get_stream(
+ const axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ return svr_conn->stream;
+}
+
+
+/* AXIS2_EXTERN axis2_tcp_response_writer_t *AXIS2_CALL */
+/* axis2_simple_tcp_svr_conn_get_writer( */
+/* const axis2_simple_tcp_svr_conn_t *svr_conn, */
+/* const axutil_env_t *env) */
+/* { */
+/* return axis2_tcp_response_writer_create(env, */
+/* svr_conn->stream); */
+/* } */
+
+
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+axis2_simple_tcp_svr_conn_read_request(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ axis2_char_t str_line[2048];
+ axis2_char_t tmp_buf[2048];
+ int read = -1;
+ axis2_bool_t end_of_line = AXIS2_FALSE;
+ axis2_bool_t end_of_headers = AXIS2_FALSE;
+ axis2_tcp_request_line_t *request_line = NULL;
+ axis2_tcp_simple_request_t *request = NULL;
+
+ AXIS2_ENV_CHECK(env, NULL);
+
+ memset(str_line, 0, 2048);
+ while ((read = axutil_stream_peek_socket(svr_conn->stream, env, tmp_buf, 2048 - 1)) > 0)
+ {
+ axis2_char_t *start = tmp_buf;
+ axis2_char_t *end = NULL;
+ tmp_buf[read] = '\0';
+ if (read >0)
+ {
+ read = axutil_stream_read(svr_conn->stream, env, tmp_buf, end - start + 2);
+ if (read > 0)
+ {
+ tmp_buf[read] = '\0';
+ strcat(str_line, tmp_buf);
+ break;
+ }
+ else
+ {
+ break;
+ }
+ }
+ }
+ if (str_line)
+ svr_conn->buffer = str_line;
+ return svr_conn->buffer;
+}
+
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_simple_tcp_svr_conn_write_response(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env,
+ axis2_tcp_simple_response_t *response)
+{
+/* axis2_tcp_response_writer_t *response_writer = NULL; */
+/* axutil_array_list_t *headers = NULL; */
+/* axutil_stream_t *response_stream = NULL; */
+/* axis2_char_t *response_body = NULL; */
+/* int body_size = 0; */
+/* int i = 0; */
+/* axis2_tcp_header_t *enc_header = NULL; */
+/* axis2_bool_t chuked_encoding = AXIS2_FALSE; */
+/* axis2_char_t *status_line = NULL; */
+/* axis2_bool_t binary_content = AXIS2_FALSE; */
+/* axis2_char_t *content_type = NULL; */
+
+
+/* AXIS2_ENV_CHECK(env, AXIS2_FAILURE); */
+/* AXIS2_PARAM_CHECK(env->error, response, AXIS2_FAILURE); */
+
+/* response_writer = axis2_tcp_response_writer_create(env, */
+/* svr_conn->stream); */
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_simple_tcp_svr_conn_set_rcv_timeout(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env,
+ int timeout)
+{
+ return axutil_network_handler_set_sock_option(env,
+ svr_conn->socket, SO_RCVTIMEO,
+ timeout);
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_simple_tcp_svr_conn_set_snd_timeout(
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env,
+ int timeout)
+{
+ return axutil_network_handler_set_sock_option(env,
+ svr_conn->socket, SO_SNDTIMEO,
+ timeout);
+}
+
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+axis2_simple_tcp_svr_conn_get_svr_ip(
+ const axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ return axutil_network_handler_get_svr_ip(env,
+ svr_conn->socket);
+}
+
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+axis2_simple_tcp_svr_conn_get_peer_ip(
+ const axis2_simple_tcp_svr_conn_t *svr_conn,
+ const axutil_env_t *env)
+{
+ return axutil_network_handler_get_peer_ip(env,
+ svr_conn->socket);
+}
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_receiver.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_receiver.c?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_receiver.c (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_receiver.c Wed Jul 18 20:38:32 2007
@@ -0,0 +1,327 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <axis2_tcp_transport.h>
+#include <axis2_tcp_svr_thread.h>
+#include <axis2_tcp_server.h>
+#include <axis2_transport_in_desc.h>
+#include <axutil_param_container.h>
+#include <axutil_url.h>
+#include <axis2_conf_init.h>
+
+/**
+ * @brief TCP Client struct impl
+ * Axis2 TCP Client impl
+ */
+
+typedef struct axis2_tcp_server_impl
+{
+ axis2_transport_receiver_t tcp_server;
+ axis2_tcp_svr_thread_t *svr_thread;
+ int port;
+ axis2_conf_ctx_t* conf_ctx;
+ axis2_conf_ctx_t* conf_ctx_private;
+ axis2_conf_t *conf;
+}
+axis2_tcp_server_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(tcp_server) \
+ ((axis2_tcp_server_impl_t *)(tcp_server))
+
+/***************************** Function headers *******************************/
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_server_init(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_transport_in_desc_t *in_desc);
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_server_start(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_server_stop(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env);
+
+axis2_conf_ctx_t *AXIS2_CALL
+axis2_tcp_server_get_conf_ctx(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env);
+
+axis2_endpoint_ref_t *AXIS2_CALL
+axis2_tcp_server_get_reply_to_epr(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env,
+ const axis2_char_t *svc_name);
+
+axis2_bool_t AXIS2_CALL
+axis2_tcp_server_is_running(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env);
+
+void AXIS2_CALL
+axis2_tcp_server_free(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env);
+
+static const axis2_transport_receiver_ops_t tcp_transport_receiver_ops_var = {
+ axis2_tcp_server_init,
+ axis2_tcp_server_start,
+ axis2_tcp_server_get_reply_to_epr,
+ axis2_tcp_server_get_conf_ctx,
+ axis2_tcp_server_is_running,
+ axis2_tcp_server_stop,
+ axis2_tcp_server_free
+};
+
+AXIS2_EXTERN axis2_transport_receiver_t *AXIS2_CALL
+axis2_tcp_server_create(
+ const axutil_env_t *env,
+ const axis2_char_t *repo,
+ const int port)
+{
+ axis2_tcp_server_impl_t *server_impl = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+
+ server_impl = (axis2_tcp_server_impl_t *)AXIS2_MALLOC
+ (env->allocator, sizeof(axis2_tcp_server_impl_t));
+
+ if (! server_impl)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ server_impl->svr_thread = NULL;
+ server_impl->conf_ctx = NULL;
+ server_impl->conf_ctx_private = NULL;
+ server_impl->port = port;
+
+ server_impl->tcp_server.ops = &tcp_transport_receiver_ops_var;
+
+ if (repo)
+ {
+ /**
+ * We first create a private conf ctx which is owned by this server
+ * we only free this private conf context. We should never free the
+ * server_impl->conf_ctx because it may own to any other object which
+ * may lead to double free
+ */
+ server_impl->conf_ctx = axis2_build_conf_ctx(env, repo);
+ if (!server_impl->conf)
+ {
+ axis2_tcp_server_free((axis2_transport_receiver_t *) server_impl, env);
+ return NULL;
+ }
+ server_impl->conf_ctx = server_impl->conf_ctx_private;
+ }
+ return &(server_impl->tcp_server);
+}
+
+void AXIS2_CALL
+axis2_tcp_server_free(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env)
+{
+ axis2_tcp_server_impl_t *server_impl = NULL;
+ AXIS2_ENV_CHECK(env, void);
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+/* if (server_impl->svr_thread) */
+/* { */
+/* axis2_tcp_svr_thread_destroy(server_impl->svr_thread, env); */
+/* axis2_tcp_svr_thread_free(server_impl->svr_thread, env); */
+/* server_impl->svr_thread = NULL; */
+/* } */
+
+ if (server_impl->conf_ctx_private)
+ {
+ axis2_conf_ctx_free(server_impl->conf_ctx_private, env);
+ server_impl->conf_ctx_private = NULL;
+ }
+ /**
+ * Do not free this. It may own to some other object
+ */
+ server_impl->conf_ctx = NULL;
+ AXIS2_FREE(env->allocator, server_impl);
+ return;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_server_init(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_transport_in_desc_t *in_desc)
+{
+ axis2_tcp_server_impl_t *server_impl = NULL;
+ axis2_char_t *port_str = NULL;
+ axutil_param_t *param = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+
+ server_impl->conf_ctx = conf_ctx;
+ param = (axutil_param_t *)axutil_param_container_get_param(
+ axis2_transport_in_desc_param_container(in_desc, env),
+ env, "port");
+ if (param)
+ {
+ port_str = axutil_param_get_value(param, env);
+ }
+ if (port_str)
+ {
+ server_impl->port = atoi(port_str);
+ }
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_server_start(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env)
+{
+
+ axis2_tcp_server_impl_t *server_impl = NULL;
+ axis2_tcp_worker_t *worker = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+ server_impl->svr_thread = axis2_tcp_svr_thread_create(env,
+ server_impl->port);
+ if (! server_impl->svr_thread)
+ {
+ return AXIS2_FAILURE;
+ }
+ worker = axis2_tcp_worker_create(env, server_impl->conf_ctx);
+ axis2_tcp_worker_set_svr_port(worker, env, server_impl->port);
+ if (! worker)
+ {
+ axis2_tcp_svr_thread_free(server_impl->svr_thread, env);
+ return AXIS2_FAILURE;
+ }
+ AXIS2_LOG_INFO(env->log, "Starting TCP server thread");
+ axis2_tcp_svr_thread_set_worker(server_impl->svr_thread, env, worker);
+ axis2_tcp_svr_thread_run(server_impl->svr_thread, env);
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_server_stop(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ AXIS2_LOG_INFO(env->log, "Terminating TCP server thread");
+/* if (AXIS2_INTF_TO_IMPL(server)->svr_thread) */
+/* { */
+/* axis2_tcp_svr_thread_destroy(AXIS2_INTF_TO_IMPL(server)->svr_thread, */
+/* env); */
+/* } */
+ AXIS2_LOG_INFO(env->log, "Successfully terminated TCP server"
+ " thread");
+ return AXIS2_SUCCESS;
+}
+
+axis2_conf_ctx_t *AXIS2_CALL
+axis2_tcp_server_get_conf_ctx(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, NULL);
+ return AXIS2_INTF_TO_IMPL(server)->conf_ctx;
+}
+
+axis2_endpoint_ref_t *AXIS2_CALL
+axis2_tcp_server_get_reply_to_epr(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env,
+ const axis2_char_t *svc_name)
+{
+ axis2_endpoint_ref_t *epr = NULL;
+ const axis2_char_t *host_address = NULL;
+ axis2_char_t *svc_path = NULL;
+ axutil_url_t *url = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+ AXIS2_PARAM_CHECK(env->error, svc_name, NULL);
+
+ host_address = "127.0.0.1"; /* TODO : get from axis2.xml */
+ svc_path = axutil_stracat(env, "/axis2/services/", svc_name);
+ url = axutil_url_create(env, "tcp", host_address,
+ AXIS2_INTF_TO_IMPL(server)->port, svc_path);
+ AXIS2_FREE(env->allocator, svc_path);
+ if (! url)
+ {
+ return NULL;
+ }
+ epr = axis2_endpoint_ref_create(env, axutil_url_to_external_form(url, env));
+ axutil_url_free(url, env);
+ return epr;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_tcp_server_is_running(
+ axis2_transport_receiver_t *server,
+ const axutil_env_t *env)
+{
+ axis2_tcp_server_impl_t *server_impl = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+/* if (! server_impl->svr_thread) */
+/* { */
+/* return AXIS2_FALSE; */
+/* } */
+/* else */
+/* { */
+/* return axis2_tcp_svr_thread_is_running(server_impl->svr_thread, env); */
+/* } */
+ return AXIS2_FALSE;
+}
+
+/**
+ * Following block distinguish the exposed part of the dll.
+ */
+AXIS2_EXPORT int axis2_get_instance(
+ struct axis2_transport_receiver **inst,
+ const axutil_env_t *env)
+{
+ *inst = axis2_tcp_server_create(env, NULL, -1);
+ if (!(*inst))
+ {
+ return AXIS2_FAILURE;
+ }
+
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_EXPORT int axis2_remove_instance(
+ axis2_transport_receiver_t *inst,
+ const axutil_env_t *env)
+{
+ if (inst)
+ {
+ axis2_transport_receiver_free(inst, env);
+ }
+ return AXIS2_SUCCESS;
+}
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_svr_thread.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_svr_thread.c?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_svr_thread.c (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_svr_thread.c Wed Jul 18 20:38:32 2007
@@ -0,0 +1,307 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * tcp://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <platforms/axutil_platform_auto_sense.h>
+#include <axis2_tcp_svr_thread.h>
+#include <axis2_tcp_server.h>
+#include <axis2_tcp_transport.h>
+#include <axutil_string.h>
+#include <axutil_network_handler.h>
+#include <axis2_tcp_simple_request.h>
+#include <axis2_simple_tcp_svr_conn.h>
+#include <axutil_url.h>
+#include <axutil_error_default.h>
+#include <axiom_xml_reader.h>
+#include <signal.h>
+
+AXIS2_EXPORT int axis2_tcp_socket_read_timeout = AXIS2_TCP_DEFAULT_SO_TIMEOUT;
+
+struct axis2_tcp_svr_thread
+{
+ int listen_socket;
+ axis2_bool_t stopped;
+ axis2_tcp_worker_t *worker;
+ int port;
+};
+
+typedef struct axis2_tcp_svr_thd_args
+{
+ axutil_env_t *env;
+ axis2_socket_t socket;
+ axis2_tcp_worker_t *worker;
+ axutil_thread_t *thread;
+}axis2_tcp_svr_thd_args_t;
+
+
+AXIS2_EXTERN const axutil_env_t *AXIS2_CALL
+init_thread_env(
+ const axutil_env_t **system_env);
+
+void *AXIS2_THREAD_FUNC
+axis2_svr_thread_worker_func(
+ axutil_thread_t *thd,
+ void *data);
+
+axis2_tcp_svr_thread_t *AXIS2_CALL
+axis2_tcp_svr_thread_create(
+ const axutil_env_t *env,
+ int port)
+{
+ axis2_tcp_svr_thread_t *svr_thread = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+
+ svr_thread = (axis2_tcp_svr_thread_t *)AXIS2_MALLOC
+ (env->allocator, sizeof(
+ axis2_tcp_svr_thread_t));
+
+ if (!svr_thread)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ svr_thread->worker = NULL;
+ svr_thread->stopped = AXIS2_FALSE;
+ svr_thread->port = port;
+ svr_thread->listen_socket = axutil_network_handler_create_server_socket
+ (env, svr_thread->port);
+ if (-1 == svr_thread->listen_socket)
+ {
+ axis2_tcp_svr_thread_free((axis2_tcp_svr_thread_t *) svr_thread,
+ env);
+ return NULL;
+ }
+
+ return svr_thread;
+}
+
+
+void AXIS2_CALL
+axis2_tcp_svr_thread_free(
+ axis2_tcp_svr_thread_t *svr_thread,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, void);
+
+ if (svr_thread->worker)
+ {
+ axis2_tcp_worker_free(svr_thread->worker, env);
+ svr_thread->worker = NULL;
+ }
+ if (-1 != svr_thread->listen_socket)
+ {
+ axutil_network_handler_close_socket(env, svr_thread->listen_socket);
+ svr_thread->listen_socket = -1;
+ }
+ svr_thread->stopped = AXIS2_TRUE;
+
+ AXIS2_FREE(env->allocator, svr_thread);
+ return;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_svr_thread_run(
+ axis2_tcp_svr_thread_t *svr_thread,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ while (AXIS2_FALSE == svr_thread->stopped)
+ {
+ int socket = -1;
+ axis2_tcp_svr_thd_args_t *arg_list = NULL;
+ axutil_thread_t *worker_thread = NULL;
+
+ socket = axutil_network_handler_svr_socket_accept(env,
+ svr_thread->listen_socket);
+ if (! svr_thread->worker)
+ {
+ AXIS2_LOG_WARNING(env->log, AXIS2_LOG_SI, "Worker not ready yet."
+ " Cannot serve the request");
+ axutil_network_handler_close_socket(env, socket);
+ continue;
+ }
+ arg_list = AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_tcp_svr_thd_args_t));
+ if (! arg_list)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+ "Memory allocation error in the svr thread loop");
+ continue;
+ }
+ arg_list->env = (axutil_env_t *)env;
+ arg_list->socket = socket;
+ arg_list->worker = svr_thread->worker;
+#ifdef AXIS2_SVR_MULTI_THREADED
+ worker_thread = axutil_thread_pool_get_thread(env->thread_pool,
+ axis2_svr_thread_worker_func, (void *)arg_list);
+ if (! worker_thread)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Thread creation failed"
+ "server thread loop");
+ continue;
+ }
+ axutil_thread_pool_thread_detach(env->thread_pool, worker_thread);
+#else
+ axis2_svr_thread_worker_func(NULL, (void *)arg_list);
+#endif
+ }
+ return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_svr_thread_destroy(
+ axis2_tcp_svr_thread_t *svr_thread,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_CRITICAL_FAILURE);
+
+ if (AXIS2_TRUE == svr_thread->stopped)
+ {
+ return AXIS2_SUCCESS;
+ }
+ svr_thread->stopped = AXIS2_TRUE;
+ AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Terminating TCP server "
+ "thread.");
+ if (svr_thread->listen_socket)
+ {
+ axutil_network_handler_close_socket(env, svr_thread->listen_socket);
+ svr_thread->listen_socket = -1;
+ }
+ return AXIS2_SUCCESS;
+}
+
+int AXIS2_CALL
+axis2_tcp_svr_thread_get_local_port(
+ const axis2_tcp_svr_thread_t *svr_thread,
+ const axutil_env_t *env)
+{
+ return svr_thread->port;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_tcp_svr_thread_is_running(
+ axis2_tcp_svr_thread_t *svr_thread,
+ const axutil_env_t *env)
+{
+ return svr_thread->port;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_tcp_svr_thread_set_worker(
+ axis2_tcp_svr_thread_t *svr_thread,
+ const axutil_env_t *env,
+ axis2_tcp_worker_t *worker)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, worker, AXIS2_FAILURE);
+ svr_thread->worker = worker;
+ return AXIS2_SUCCESS;
+}
+
+
+/**
+ * Thread worker function.
+ */
+void *AXIS2_THREAD_FUNC
+axis2_svr_thread_worker_func (
+ axutil_thread_t *thd,
+ void *data)
+{
+ struct AXIS2_PLATFORM_TIMEB t1, t2;
+ axis2_simple_tcp_svr_conn_t *svr_conn = NULL;
+ axis2_char_t *request = NULL;
+ int millisecs = 0;
+ double secs = 0;
+ axis2_tcp_worker_t *tmp = NULL;
+ axis2_status_t status = AXIS2_FAILURE;
+ axutil_env_t *env = NULL;
+ axis2_socket_t socket;
+ axutil_env_t *thread_env = NULL;
+ axis2_tcp_svr_thd_args_t *arg_list = NULL;
+
+#ifndef WIN32
+#ifdef AXIS2_SVR_MULTI_THREADED
+ signal(SIGPIPE, SIG_IGN);
+#endif
+#endif
+
+ arg_list = (axis2_tcp_svr_thd_args_t *)data;
+ if (! arg_list)
+ {
+ return NULL;
+ }
+ AXIS2_PLATFORM_GET_TIME_IN_MILLIS(&t1);
+ env = arg_list->env;
+ thread_env = axutil_init_thread_env(env);
+ socket = arg_list->socket;
+ svr_conn = axis2_simple_tcp_svr_conn_create(thread_env, socket);
+ axis2_simple_tcp_svr_conn_set_rcv_timeout(svr_conn, thread_env,
+ axis2_tcp_socket_read_timeout);
+ request = axis2_simple_tcp_svr_conn_read_request(svr_conn, thread_env);
+ AXIS2_LOG_DEBUG (env->log, AXIS2_LOG_SI, "tcp request %s", request);
+ tmp = arg_list->worker;
+ status = axis2_tcp_worker_process_request(tmp, thread_env, svr_conn,
+ request);
+/* axis2_simple_tcp_svr_conn_free(svr_conn, thread_env); */
+/* if (request) */
+/* axis2_tcp_simple_request_free(request, thread_env); */
+ AXIS2_PLATFORM_GET_TIME_IN_MILLIS(&t2);
+ millisecs = t2.millitm - t1.millitm;
+ secs = difftime(t2.time, t1.time);
+ if (millisecs < 0)
+ {
+ millisecs += 1000;
+ secs--;
+ }
+ secs += millisecs / 1000.0;
+
+ if (status == AXIS2_SUCCESS)
+ {
+#if defined(WIN32)
+ AXIS2_LOG_INFO(thread_env->log, "Request served successfully");
+#else
+ AXIS2_LOG_INFO(thread_env->log, "Request served in %.3f seconds", secs);
+#endif
+ }
+ else
+ {
+#if defined(WIN32)
+ AXIS2_LOG_WARNING(thread_env->log, AXIS2_LOG_SI,
+ "Error occured in processing request ");
+#else
+ AXIS2_LOG_WARNING(thread_env->log, AXIS2_LOG_SI,
+ "Error occured in processing request (%.3f seconds)",
+ secs);
+#endif
+ }
+
+ AXIS2_FREE(thread_env->allocator, arg_list);
+
+ if (thread_env)
+ {
+ axutil_free_thread_env(thread_env);
+ thread_env = NULL;
+ }
+#ifdef AXIS2_SVR_MULTI_THREADED
+ axutil_thread_pool_exit_thread(env->thread_pool, thd);
+#endif
+
+ return NULL;
+}
+
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_worker.c?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_worker.c (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/receiver/tcp_worker.c Wed Jul 18 20:38:32 2007
@@ -0,0 +1,264 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * tcp://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#include <axis2_tcp_worker.h>
+#include <axutil_string.h>
+#include <axis2_tcp_transport.h>
+#include <axis2_conf.h>
+#include <axutil_string.h>
+#include <axis2_msg_ctx.h>
+#include <axis2_tcp_request_line.h>
+#include <axis2_tcp_out_transport_info.h>
+#include <axis2_tcp_transport_utils.h>
+#include <axis2_op_ctx.h>
+#include <axis2_engine.h>
+#include <axutil_uuid_gen.h>
+#include <axutil_url.h>
+#include <axutil_property.h>
+#include <string.h>
+#include <axiom_soap.h>
+#include <axiom.h>
+
+struct axis2_tcp_worker
+{
+ axis2_conf_ctx_t *conf_ctx;
+ int svr_port;
+};
+
+static axis2_status_t
+axis2_tcp_worker_set_response_headers(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ axis2_tcp_simple_request_t *simple_request,
+ axis2_tcp_simple_response_t *simple_response,
+ axis2_ssize_t content_length);
+
+static axis2_status_t
+axis2_tcp_worker_set_transport_out_config(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_tcp_simple_response_t *simple_response);
+
+static axutil_hash_t *
+axis2_tcp_worker_get_headers(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_tcp_simple_request_t *request);
+
+AXIS2_EXTERN axis2_tcp_worker_t *AXIS2_CALL
+axis2_tcp_worker_create(
+ const axutil_env_t *env,
+ axis2_conf_ctx_t *conf_ctx)
+{
+ axis2_tcp_worker_t *tcp_worker = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+ tcp_worker = (axis2_tcp_worker_t *)
+ AXIS2_MALLOC(env->allocator, sizeof(axis2_tcp_worker_t));
+
+ if (!tcp_worker)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ tcp_worker->conf_ctx = conf_ctx;
+ tcp_worker->svr_port = 9090; /* default - must set later*/
+
+ return tcp_worker;
+}
+
+AXIS2_EXTERN void AXIS2_CALL
+axis2_tcp_worker_free(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, void);
+
+ tcp_worker->conf_ctx = NULL;
+
+ AXIS2_FREE(env->allocator, tcp_worker);
+
+ return;
+}
+
+AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+axis2_tcp_worker_process_request(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ axis2_char_t *simple_request)
+{
+ axis2_conf_ctx_t *conf_ctx = NULL;
+ axis2_transport_out_desc_t *out_desc = NULL;
+ axis2_transport_in_desc_t *in_desc = NULL;
+ axis2_msg_ctx_t *msg_ctx = NULL;
+ axutil_stream_t *out_stream = axutil_stream_create_basic (env);
+ axiom_xml_reader_t *reader = NULL;
+ axiom_stax_builder_t *builder = NULL;
+ axiom_soap_builder_t *soap_builder = NULL;
+ axiom_soap_envelope_t *soap_envelope = NULL;
+ axis2_engine_t *engine = NULL;
+ axis2_status_t status = AXIS2_FALSE;
+ axutil_stream_t *svr_stream = NULL;
+ axis2_char_t *buffer = NULL;
+ int len = 0;
+
+ reader = axiom_xml_reader_create_for_memory(env, simple_request,
+ axutil_strlen(simple_request), NULL, AXIS2_XML_PARSER_TYPE_BUFFER);
+ if (!reader)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed to create XML reader");
+ return AXIS2_FAILURE;
+ }
+
+ builder = axiom_stax_builder_create(env, reader);
+ if (!builder)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed to create Stax builder");
+ return AXIS2_FAILURE;
+ }
+
+ soap_builder = axiom_soap_builder_create(env, builder,
+ AXIOM_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI);
+ if (!soap_builder)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed to create SOAP builder");
+ return AXIS2_FAILURE;
+ }
+
+
+ conf_ctx = tcp_worker->conf_ctx;
+
+ out_desc = axis2_conf_get_transport_out (axis2_conf_ctx_get_conf (conf_ctx, env),
+ env,
+ AXIS2_TRANSPORT_ENUM_TCP);
+
+ in_desc = axis2_conf_get_transport_in (axis2_conf_ctx_get_conf (conf_ctx, env),
+ env,
+ AXIS2_TRANSPORT_ENUM_TCP);
+
+ msg_ctx = axis2_msg_ctx_create (env, conf_ctx, in_desc, out_desc);
+ axis2_msg_ctx_set_server_side (msg_ctx, env, AXIS2_TRUE);
+ axis2_msg_ctx_set_transport_out_stream (msg_ctx, env, out_stream);
+
+ soap_envelope = axiom_soap_builder_get_soap_envelope (soap_builder, env);
+ axis2_msg_ctx_set_soap_envelope (msg_ctx, env, soap_envelope);
+
+ engine = axis2_engine_create (env, conf_ctx);
+ status = axis2_engine_receive (engine, env, msg_ctx);
+
+ svr_stream = axis2_simple_tcp_svr_conn_get_stream (svr_conn, env);
+ buffer = out_stream->buffer;
+ len = out_stream->len;
+
+ if (svr_stream && buffer)
+ axutil_stream_write (svr_stream, env, buffer, len + 1);
+
+ return AXIS2_TRUE;
+}
+
+static axis2_status_t
+axis2_tcp_worker_set_response_headers(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_simple_tcp_svr_conn_t *svr_conn,
+ axis2_tcp_simple_request_t *simple_request,
+ axis2_tcp_simple_response_t *simple_response,
+ axis2_ssize_t content_length)
+{
+ return AXIS2_SUCCESS;
+}
+
+/*
+ * This is only called for HTTP/1.1 to enable 1.1 specific parameters.
+ *
+ */
+static axis2_status_t
+axis2_tcp_worker_set_transport_out_config(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_tcp_simple_response_t *simple_response)
+{
+ axis2_conf_t *config = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, conf_ctx, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, simple_response, AXIS2_FAILURE);
+
+ config = axis2_conf_ctx_get_conf(conf_ctx, env);
+
+ return AXIS2_SUCCESS;
+}
+
+static axutil_hash_t *
+axis2_tcp_worker_get_headers(
+ axis2_tcp_worker_t *tcp_worker,
+ const axutil_env_t *env,
+ axis2_tcp_simple_request_t *request)
+{
+ axutil_array_list_t *header_list = NULL;
+ int hdr_count = 0;
+ int i = 0;
+ axutil_hash_t *header_map = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, request, AXIS2_FAILURE);
+
+/* header_list = axis2_tcp_simple_request_get_headers(request, env); */
+/* if (!header_list) */
+/* { */
+/* return NULL; */
+/* } */
+/* hdr_count = axutil_array_list_size(header_list, env); */
+/* if (0 == hdr_count) */
+/* { */
+/* return NULL; */
+/* } */
+
+/* for (i = 0; i < hdr_count; i++) */
+/* { */
+/* axis2_tcp_header_t *tmp_hdr = NULL; */
+/* tmp_hdr = axutil_array_list_get(header_list, env, i); */
+/* if (!tmp_hdr) */
+/* { */
+/* continue; */
+/* } */
+/* if (!header_map) */
+/* { */
+/* header_map = axutil_hash_make(env); */
+/* if (!header_map) */
+/* { */
+/* return NULL; */
+/* } */
+/* } */
+/* axutil_hash_set(header_map, axis2_tcp_header_get_name(tmp_hdr, env), */
+/* AXIS2_HASH_KEY_STRING, tmp_hdr); */
+/* } */
+ return header_map;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_tcp_worker_set_svr_port(
+ axis2_tcp_worker_t *worker,
+ const axutil_env_t *env,
+ int port)
+{
+ worker->svr_port = port;
+ return AXIS2_SUCCESS;
+}
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile Wed Jul 18 20:38:32 2007
@@ -0,0 +1,675 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# src/core/transport/http/sender/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+srcdir = .
+top_srcdir = ../../../../..
+
+pkgdatadir = $(datadir)/axis2c-src
+pkglibdir = $(libdir)/axis2c-src
+pkgincludedir = $(includedir)/axis2c-src
+top_builddir = ../../../../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = /usr/bin/install -c
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = i686-pc-linux-gnu
+host_triplet = i686-pc-linux-gnu
+target_triplet = i686-pc-linux-gnu
+subdir = src/core/transport/http/sender
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libdir)"
+libLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+libaxis2_http_sender_la_DEPENDENCIES = $(top_builddir)/src/core/transport/http/common/libaxis2_http_common.la \
+ $(top_builddir)/src/core/transport/http/util/libaxis2_http_util.la \
+ $(top_builddir)/axiom/src/om/libaxis2_axiom.la \
+ $(top_builddir)/util/src/libaxutil.la $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1)
+am__libaxis2_http_sender_la_SOURCES_DIST = http_transport_sender.c \
+ http_sender.c http_client.c ssl/ssl_stream.c ssl/ssl_utils.c \
+ libcurl/axis2_libcurl.c libcurl/libcurl_stream.c
+#am__objects_1 = ssl_stream.lo ssl_utils.lo
+#am__objects_2 = axis2_libcurl.lo \
+# libcurl_stream.lo
+am_libaxis2_http_sender_la_OBJECTS = http_transport_sender.lo \
+ http_sender.lo http_client.lo $(am__objects_1) \
+ $(am__objects_2)
+libaxis2_http_sender_la_OBJECTS = \
+ $(am_libaxis2_http_sender_la_OBJECTS)
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(libaxis2_http_sender_la_SOURCES)
+DIST_SOURCES = $(am__libaxis2_http_sender_la_SOURCES_DIST)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-exec-recursive install-info-recursive \
+ install-recursive installcheck-recursive installdirs-recursive \
+ pdf-recursive ps-recursive uninstall-info-recursive \
+ uninstall-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/dinesh/axis2c/missing --run aclocal-1.9
+AMDEP_FALSE = #
+AMDEP_TRUE =
+AMTAR = ${SHELL} /home/dinesh/axis2c/missing --run tar
+APACHE2BUILD =
+APACHE2INC =
+APRINC =
+AR = ar
+AUTOCONF = ${SHELL} /home/dinesh/axis2c/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/dinesh/axis2c/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/dinesh/axis2c/missing --run automake-1.9
+AWK = gawk
+AXIS2_LIBCURL_ENABLED_FALSE =
+AXIS2_LIBCURL_ENABLED_TRUE = #
+AXIS2_SSL_ENABLED_FALSE =
+AXIS2_SSL_ENABLED_TRUE = #
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g3 -O0 -Werror -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration -g -DAXIS2_SVR_MULTI_THREADED
+CPP = gcc -E
+CPPFLAGS =
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+DICLIENT_DIR =
+ECHO = echo
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+EGREP = /bin/grep -E
+EXEEXT =
+F77 =
+FFLAGS =
+GREP = /bin/grep
+GUTHTHILA_DIR =
+GUTHTHILA_LIBS =
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+LDFLAGS = -lpthread
+LIBOBJS =
+LIBS = -lz -ldl
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS =
+MAKEINFO = ${SHELL} /home/dinesh/axis2c/missing --run makeinfo
+OBJEXT = o
+PACKAGE = axis2c-src
+PACKAGE_BUGREPORT =
+PACKAGE_NAME = axis2c-src
+PACKAGE_STRING = axis2c-src 1.1.0
+PACKAGE_TARNAME = axis2c-src
+PACKAGE_VERSION = 1.1.0
+PARSER_CFLAGS =
+PARSER_DIR =
+PARSER_LIBS =
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+RANLIB = ranlib
+SAMPLES =
+SED = /bin/sed
+SET_MAKE =
+SHELL = /bin/sh
+STRIP = strip
+TESTDIR =
+VERSION = 1.1.0
+VERSION_NO = 1:0:1
+WRAPPER_DIR = libxml2
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_F77 =
+am__fastdepCC_FALSE = #
+am__fastdepCC_TRUE =
+am__fastdepCXX_FALSE = #
+am__fastdepCXX_TRUE =
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = ${AMTAR} chof - "$$tardir"
+am__untar = ${AMTAR} xf -
+bindir = ${exec_prefix}/bin
+build = i686-pc-linux-gnu
+build_alias =
+build_cpu = i686
+build_os = linux-gnu
+build_vendor = pc
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = i686-pc-linux-gnu
+host_alias =
+host_cpu = i686
+host_os = linux-gnu
+host_vendor = pc
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = /home/dinesh/axis2c/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = mkdir -p --
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /home/dinesh/axis2c/deploy
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+subdirs = util axiom neethi
+sysconfdir = ${prefix}/etc
+target = i686-pc-linux-gnu
+target_alias =
+target_cpu = i686
+target_os = linux-gnu
+target_vendor = pc
+SUBDIRS = ssl libcurl
+lib_LTLIBRARIES = libaxis2_http_sender.la
+LIBCURL_SOURCES =
+#LIBCURL_SOURCES = libcurl/axis2_libcurl.c\
+# libcurl/libcurl_stream.c
+
+LIBCURL_LIBS =
+#LIBCURL_LIBS = -lssl -lcrypto -lcurl -ldl -lz
+SSL_SOURCES =
+#SSL_SOURCES = ssl/ssl_stream.c\
+# ssl/ssl_utils.c
+
+SSL_LIBS =
+#SSL_LIBS = -lssl -lcrypto
+libaxis2_http_sender_la_SOURCES = http_transport_sender.c \
+ http_sender.c \
+ http_client.c \
+ $(SSL_SOURCES) \
+ $(LIBCURL_SOURCES)
+
+libaxis2_http_sender_la_LIBADD = $(top_builddir)/src/core/transport/http/common/libaxis2_http_common.la\
+ $(top_builddir)/src/core/transport/http/util/libaxis2_http_util.la\
+ $(top_builddir)/axiom/src/om/libaxis2_axiom.la\
+ $(top_builddir)/util/src/libaxutil.la\
+ $(LIBCURL_LIBS)\
+ $(SSL_LIBS)
+
+libaxis2_http_sender_la_LDFLAGS = -version-info $(VERSION_NO)
+INCLUDES = -I$(top_builddir)/include \
+ -I$(top_builddir)/src/core/transport\
+ -I$(top_builddir)/src/core/transport/http \
+ -I$(top_builddir)/src/core/transport/http/sender/libcurl \
+ -I$(top_builddir)/src/core/description \
+ -I$(top_builddir)/src/core/context \
+ -I$(top_builddir)/src/core/phaseresolver \
+ -I$(top_builddir)/src/core/engine \
+ -I$(top_builddir)/src/core/deployment \
+ -I$(top_builddir)/util/include \
+ -I$(top_builddir)/axiom/include
+
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/core/transport/http/sender/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/core/transport/http/sender/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libaxis2_http_sender.la: $(libaxis2_http_sender_la_OBJECTS) $(libaxis2_http_sender_la_DEPENDENCIES)
+ $(LINK) -rpath $(libdir) $(libaxis2_http_sender_la_LDFLAGS) $(libaxis2_http_sender_la_OBJECTS) $(libaxis2_http_sender_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+include ./$(DEPDIR)/axis2_libcurl.Plo
+include ./$(DEPDIR)/http_client.Plo
+include ./$(DEPDIR)/http_sender.Plo
+include ./$(DEPDIR)/http_transport_sender.Plo
+include ./$(DEPDIR)/libcurl_stream.Plo
+include ./$(DEPDIR)/ssl_stream.Plo
+include ./$(DEPDIR)/ssl_utils.Plo
+
+.c.o:
+ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c $<
+
+.c.obj:
+ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+# source='$<' object='$@' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LTCOMPILE) -c -o $@ $<
+
+ssl_stream.lo: ssl/ssl_stream.c
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ssl_stream.lo -MD -MP -MF "$(DEPDIR)/ssl_stream.Tpo" -c -o ssl_stream.lo `test -f 'ssl/ssl_stream.c' || echo '$(srcdir)/'`ssl/ssl_stream.c; \
+ then mv -f "$(DEPDIR)/ssl_stream.Tpo" "$(DEPDIR)/ssl_stream.Plo"; else rm -f "$(DEPDIR)/ssl_stream.Tpo"; exit 1; fi
+# source='ssl/ssl_stream.c' object='ssl_stream.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ssl_stream.lo `test -f 'ssl/ssl_stream.c' || echo '$(srcdir)/'`ssl/ssl_stream.c
+
+ssl_utils.lo: ssl/ssl_utils.c
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ssl_utils.lo -MD -MP -MF "$(DEPDIR)/ssl_utils.Tpo" -c -o ssl_utils.lo `test -f 'ssl/ssl_utils.c' || echo '$(srcdir)/'`ssl/ssl_utils.c; \
+ then mv -f "$(DEPDIR)/ssl_utils.Tpo" "$(DEPDIR)/ssl_utils.Plo"; else rm -f "$(DEPDIR)/ssl_utils.Tpo"; exit 1; fi
+# source='ssl/ssl_utils.c' object='ssl_utils.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ssl_utils.lo `test -f 'ssl/ssl_utils.c' || echo '$(srcdir)/'`ssl/ssl_utils.c
+
+axis2_libcurl.lo: libcurl/axis2_libcurl.c
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT axis2_libcurl.lo -MD -MP -MF "$(DEPDIR)/axis2_libcurl.Tpo" -c -o axis2_libcurl.lo `test -f 'libcurl/axis2_libcurl.c' || echo '$(srcdir)/'`libcurl/axis2_libcurl.c; \
+ then mv -f "$(DEPDIR)/axis2_libcurl.Tpo" "$(DEPDIR)/axis2_libcurl.Plo"; else rm -f "$(DEPDIR)/axis2_libcurl.Tpo"; exit 1; fi
+# source='libcurl/axis2_libcurl.c' object='axis2_libcurl.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o axis2_libcurl.lo `test -f 'libcurl/axis2_libcurl.c' || echo '$(srcdir)/'`libcurl/axis2_libcurl.c
+
+libcurl_stream.lo: libcurl/libcurl_stream.c
+ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libcurl_stream.lo -MD -MP -MF "$(DEPDIR)/libcurl_stream.Tpo" -c -o libcurl_stream.lo `test -f 'libcurl/libcurl_stream.c' || echo '$(srcdir)/'`libcurl/libcurl_stream.c; \
+ then mv -f "$(DEPDIR)/libcurl_stream.Tpo" "$(DEPDIR)/libcurl_stream.Plo"; else rm -f "$(DEPDIR)/libcurl_stream.Tpo"; exit 1; fi
+# source='libcurl/libcurl_stream.c' object='libcurl_stream.lo' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcurl_stream.lo `test -f 'libcurl/libcurl_stream.c' || echo '$(srcdir)/'`libcurl/libcurl_stream.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(mkdir_p) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(libdir)"; do \
+ test -z "$$dir" || $(mkdir_p) "$$dir"; \
+ done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
+ clean clean-generic clean-libLTLIBRARIES clean-libtool \
+ clean-recursive ctags ctags-recursive distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-recursive distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-exec install-exec-am install-info \
+ install-info-am install-libLTLIBRARIES install-man \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ maintainer-clean-recursive mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
+ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-info-am uninstall-libLTLIBRARIES
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
Added: webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile.am?view=auto&rev=557477
==============================================================================
--- webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile.am (added)
+++ webservices/axis2/scratch/c/dinesh/602/c/src/core/transport/tcp/sender/Makefile.am Wed Jul 18 20:38:32 2007
@@ -0,0 +1,51 @@
+SUBDIRS=ssl libcurl
+lib_LTLIBRARIES = libaxis2_http_sender.la
+
+
+
+if AXIS2_LIBCURL_ENABLED
+LIBCURL_SOURCES=libcurl/axis2_libcurl.c\
+ libcurl/libcurl_stream.c
+LIBCURL_LIBS=-lssl -lcrypto -lcurl -ldl -lz
+else
+LIBCURL_SOURCES=
+LIBCURL_LIBS=
+endif
+
+
+if AXIS2_SSL_ENABLED
+SSL_SOURCES = ssl/ssl_stream.c\
+ ssl/ssl_utils.c
+SSL_LIBS = -lssl -lcrypto
+else
+SSL_SOURCES=
+SSL_LIBS=
+endif
+
+libaxis2_http_sender_la_SOURCES = http_transport_sender.c \
+ http_sender.c \
+ http_client.c \
+ $(SSL_SOURCES) \
+ $(LIBCURL_SOURCES)
+
+libaxis2_http_sender_la_LIBADD = $(top_builddir)/src/core/transport/http/common/libaxis2_http_common.la\
+ $(top_builddir)/src/core/transport/http/util/libaxis2_http_util.la\
+ $(top_builddir)/axiom/src/om/libaxis2_axiom.la\
+ $(top_builddir)/util/src/libaxutil.la\
+ $(LIBCURL_LIBS)\
+ $(SSL_LIBS)
+
+
+libaxis2_http_sender_la_LDFLAGS = -version-info $(VERSION_NO)
+
+INCLUDES = -I$(top_builddir)/include \
+ -I$(top_builddir)/src/core/transport\
+ -I$(top_builddir)/src/core/transport/http \
+ -I$(top_builddir)/src/core/transport/http/sender/libcurl \
+ -I$(top_builddir)/src/core/description \
+ -I$(top_builddir)/src/core/context \
+ -I$(top_builddir)/src/core/phaseresolver \
+ -I$(top_builddir)/src/core/engine \
+ -I$(top_builddir)/src/core/deployment \
+ -I$(top_builddir)/util/include \
+ -I$(top_builddir)/axiom/include
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org