Ignore:
Timestamp:
Nov 18, 2007 2:53:47 PM (12 years ago)
Author:
bennylp
Message:

Ticket #415: implement IPv6 support in PJLIB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/socket.h

    r1584 r1585  
    3232#  include <winsock.h> 
    3333#endif 
     34 
     35/* 
     36 * IPv6 for Visual Studio's 
     37 * 
     38 * = Visual Studio 6 = 
     39 * 
     40 * Visual Studio 6 does not ship with IPv6 support, so you MUST 
     41 * download and install IPv6 Tehnology Preview (IPv6Kit) from: 
     42 *    http://msdn.microsoft.com/downloads/sdks/platform/tpipv6/ReadMe.asp 
     43 * Then put IPv6Kit\inc in your Visual Studio include path. 
     44 *  
     45 * In addition, by default IPv6Kit does not want to install on 
     46 * Windows 2000 SP4. Please see: 
     47 *    http://msdn.microsoft.com/downloads/sdks/platform/tpipv6/faq.asp 
     48 * on  how to install IPv6Kit on Win2K SP4. 
     49 * 
     50 * 
     51 * = Visual Studio 2003, 2005 (including Express) = 
     52 * 
     53 * These VS uses Microsoft Platform SDK for Windows Server 2003 SP1, and 
     54 * it has built-in IPv6 support. 
     55 */ 
     56#if defined(_MSC_VER) && defined(PJ_HAS_IPV6) && PJ_HAS_IPV6!=0 
     57#   ifndef s_addr 
     58#       define s_addr  S_un.S_addr 
     59#   endif 
     60 
     61#   include <ws2tcpip.h> 
     62 
     63#   ifndef IPPROTO_IPV6 
     64        /* Need to download and install IPv6Kit for this platform. 
     65         * Please see the comments above about Visual Studio 6. 
     66         */ 
     67#       include <tpipv6.h> 
     68#   endif 
     69 
     70#   undef s_addr 
     71#endif  /* _MSC_VER */ 
     72 
    3473 
    3574#if defined(PJ_HAS_SYS_TYPES_H) && PJ_HAS_SYS_TYPES_H != 0 
Note: See TracChangeset for help on using the changeset viewer.