(file) Return to System.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/System.cpp between version 1.55 and 1.56

version 1.55, 2007/08/03 01:04:20 version 1.56, 2007/08/13 11:23:18
Line 269 
Line 269 
 #endif #endif
 } }
  
   
   #ifdef PEGASUS_ENABLE_IPV6
   Boolean System::isIPv6StackActive()
   {
       SocketHandle ip6Socket;
       if ((ip6Socket = Socket::createSocket(AF_INET6, SOCK_STREAM, IPPROTO_TCP))
           == PEGASUS_INVALID_SOCKET)
       {
           if (getSocketError() == PEGASUS_INVALID_ADDRESS_FAMILY)
           {
               return false;
           }
       }
       else
       {
           Socket::close(ip6Socket);
       }
   
       return true;
   }
   #endif
   
 // ------------------------------------------------------------------------ // ------------------------------------------------------------------------
 // Convert a hostname into a a single host unique integer representation // Convert a hostname into a a single host unique integer representation
 // ------------------------------------------------------------------------ // ------------------------------------------------------------------------


Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2