axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hawk...@apache.org
Subject cvs commit: ws-axis/c/src/transport/axis2 Channel.cpp
Date Mon, 10 Jan 2005 17:07:07 GMT
hawkeye     2005/01/10 09:07:07

  Modified:    c/src/transport/axis2 Channel.cpp
  Log:
  m_bUseProxy was not initialised which was causing errors on AIX. now initialiased in constructor
  
  Revision  Changes    Path
  1.13      +14 -3     ws-axis/c/src/transport/axis2/Channel.cpp
  
  Index: Channel.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis2/Channel.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Channel.cpp	5 Jan 2005 11:32:22 -0000	1.12
  +++ Channel.cpp	10 Jan 2005 17:07:07 -0000	1.13
  @@ -33,9 +33,9 @@
   
   /** Channel::Channel() Constructor
    */
  -Channel::Channel ():m_Sock (INVALID_SOCKET), m_iMsgLength( 0), m_sMsg(NULL), m_lTimeoutSeconds(0)
  +Channel::Channel ():m_Sock (INVALID_SOCKET), m_iMsgLength( 0), m_sMsg(NULL), m_lTimeoutSeconds(0),
m_bUseProxy(false)
   {
  -
  +	
   #ifdef WIN32
   	m_lTimeoutSeconds = 10;
   #endif
  @@ -154,6 +154,7 @@
                   {
                       port = m_uiProxyPort;
                       host = m_strProxyHost.c_str();
  +                    cout << "Using proxy " << "host = "<<host <<
" port = "<< port << "htons = " << htons(port) << "\n";
                   }
   		svAddr.sin_family = AF_INET;
   		svAddr.sin_port = htons (port);
  @@ -181,6 +182,15 @@
   			// That way we could have e.g. char* Windows#getLastErrorMessage()
   			long dw = GetLastError();
   #endif
  +#ifdef _AIX
  +                cout << "Error connecting: Host = "<<host<<" port = "<<
port;
  +	int errNumber = errno;
  +	cout << " Errno = "<<errNumber<< "\n";
  +	char errStringBuffer[200];
  +	char* errorString = strerror(errNumber);
  +	
  +	cout <<"error string = " << errorString << "\n";
  +#endif 
   			closeChannel();
   
   #ifdef WIN32
  @@ -673,7 +683,8 @@
   
   void Channel::setProxy (const char *pcProxyHost, unsigned int uiProxyPort)
   {
  +	cout << "Setting proxy "<<pcProxyHost<< ":"<<uiProxyPort<<
"\n";
       m_strProxyHost = pcProxyHost;
  -    m_uiProxyPort = uiProxyPort;
  +   m_uiProxyPort = uiProxyPort;
       m_bUseProxy = true;
   }
  
  
  

Mime
View raw message