You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2004/12/28 20:08:10 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Platforms/MacOS MacOSPlatformUtils.cpp

jberry      2004/12/28 11:08:10

  Modified:    c/src/xercesc/util/Platforms/MacOS MacOSPlatformUtils.cpp
  Log:
  Add support for use of sockets netaccessor on Mac OS X.
  Patch from Chris Cates. Thanks Chris!
  
  Revision  Changes    Path
  1.29      +6 -1      xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp
  
  Index: MacOSPlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- MacOSPlatformUtils.cpp	8 Sep 2004 13:56:40 -0000	1.28
  +++ MacOSPlatformUtils.cpp	28 Dec 2004 19:08:09 -0000	1.29
  @@ -76,6 +76,8 @@
      #include <xercesc/util/NetAccessors/MacOSURLAccessCF/MacOSURLAccessCF.hpp>
   #elif defined(USE_URLACCESS)
      #include <xercesc/util/NetAccessors/MacOSURLAccess/MacOSURLAccess.hpp>
  +#elif defined(XML_USE_NETACCESSOR_SOCKET)
  +   #include <xercesc/util/NetAccessors/Socket/SocketNetAccessor.hpp>
   #endif
   
   XERCES_CPP_NAMESPACE_BEGIN
  @@ -575,6 +577,7 @@
       //	XML_USE_NETACCESSOR_URLACCESSCF		-- Use netaccessor based on CFURLAccess (CoreFoundation based)
       //	XML_USE_NETACCESSOR_NATIVE			-- In absence of above selections, chooses URLACCESSCF
       //										   if targetting Carbon, and URLAccess otherwise
  +    //	XML_USE_NETACCESSOR_SOCKET			-- Use the sockets based netaccessor
       //
       //	These choices are resolved at the ^^^top^^^ of this file.
   
  @@ -585,6 +588,8 @@
   	//	Only try to use URLAccess if it's actually available
   	if (URLAccessAvailable())
   		return new MacOSURLAccess;
  +#elif (defined(XML_USE_NETACCESSOR_SOCKET))
  +	return new SocketNetAccessor;
   #endif
   
   	//	No netaccessor available--we can live with it, but you won't
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org