axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/transport/axis2/ipv6 IPV6Channel.cpp
Date Wed, 05 Jan 2005 11:38:20 GMT
samisa      2005/01/05 03:38:20

  Modified:    c/src/transport/axis2/ipv6 IPV6Channel.cpp
  Log:
  Fixed IPV6 code for setting proxy.
  
  Revision  Changes    Path
  1.8       +11 -2     ws-axis/c/src/transport/axis2/ipv6/IPV6Channel.cpp
  
  Index: IPV6Channel.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis2/ipv6/IPV6Channel.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- IPV6Channel.cpp	4 Jan 2005 18:26:24 -0000	1.7
  +++ IPV6Channel.cpp	5 Jan 2005 11:38:20 -0000	1.8
  @@ -86,8 +86,17 @@
       hints.ai_socktype = SOCK_STREAM;
   
       char port[7];
  -    sprintf(port, "%hd", m_URL.getPort());
  -    int err = getaddrinfo(m_URL.getHostName(), port, &hints, &addrInfo0);
  +   
  +    const char* host = m_URL.getHostName();
  +    unsigned int uiPort = m_URL.getPort();
  +    if (m_bUseProxy)
  +    {
  +        uiPort = m_uiProxyPort;
  +        host = m_strProxyHost.c_str();
  +    }
  + 
  +    sprintf(port, "%hd", uiPort);
  +    int err = getaddrinfo(host, port, &hints, &addrInfo0);
       if (err)
       {
   
  
  
  

Mime
View raw message