hi,<br> ACE VERSION: 5.5.8<br><br> HOST MACHINE and OPERATING SYSTEM: Windows XP<br> If on Windows based OS's, which version of WINSOCK do you<br> use?: winsock2<br><br> TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
<br> COMPILER NAME AND VERSION (AND PATCHLEVEL):<br><br> THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-<br> specific file, simply state which one]: config-win32.h<br><br> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
<br> use a link to a platform-specific file, simply state which one<br> (unless this isn't used in this case, e.g., with Microsoft Visual<br> C++)]: <br><br> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
<br> (used by MPC when you generate your own makefiles): ssl = 1, ipv6 = 1<br> <br> AREA/CLASS/EXAMPLE AFFECTED:<br>[What example failed? What module failed to compile?]<br> none<br><br> DOES THE PROBLEM AFFECT:
<br> COMPILATION? no <br> LINKING?<br> On Unix systems, did you run make realclean first? no<br> EXECUTION? no<br> OTHER (please specify)? ( question at bottom )<br>[Please indicate whether ACE, your application, or both are affected.]
<br><br> SYNOPSIS:<br>[Brief description of the problem]<br> none<br><br> DESCRIPTION:<br> after building ACE with ipv6 support SOCK_Acceptor failed to work<br> <br><br> REPEAT BY:<br>[What you did to get the error; include test program or session
<br>transcript if at all possible. ]<br><br> SAMPLE FIX/WORKAROUND:<br>[If available ]<br><br>here is what i am doing.. <br><br>ACE_INET_Addr localaddr;<br>localaddr.set_port(portno);<br><br>SOCK_Acceptor acceptor;<br>
acceptor.open(localaddr, ...);<br><br>every thing was working fine.. but when i recompiled ACE with ipv6 support acceptor returns -1<br>stepping in the code i found that acceptor is not able able to open a socket because the sock type is set to AF_INET6 and the machine i am running is not comfigured for ipv6
<br><br>here is my question: <br>it is an expected behaviour that ipv6 socket failed to open because the machine is not configured for it. What should be done to make it work on ipv4, ipv6 and ipv4-ipv6 environment.<br>From the code i can see specifying AF_INET will use ipv4 specific storage and using AF_INET6 uses ipv6 storage, is it possible to use both IPV4 and IPV6 address on the machine ??
<br><br>thankx in advance<br><br>regards,<br>prem<br><br><br>