[ace-users] question on ACE_INET_Addr

Premkumar P kumaran.prem at gmail.com
Wed Aug 1 20:55:23 CDT 2007


hi,

thankx for the help i used ipv6_enabled to know if IPV6 is enabled or not
and use AF_INET or AF_INET6.

but as the machine is running in a pure IPV4 env., when creating
ACE_Proactor error messgae " unable to open notification pipe, address
family not supported" is being printed ..
by stepping in, found that notification pipe is being opened and the address
family is set to AF_INET6 by default (as ACE is compiled with IPV6 support).

i think if ACE is compiled with IPV6 support it should still be able to work
fine in IPV4 environment !
is there any workaround for this, i have to use the same ACE library on all
env. (IPV4, IPV6, IPV4-IPV6)

(i upgraded to ACE 5.5.10)

thankx in advance,
prem

On 8/1/07, Johnny Willemsen <jwillemsen at remedy.nl> wrote:
>
> Hi,
>
> Thanks for using the PRF form. ACE has some checks whether IPv6 is enabled
> or not, this is in ACE::ipv6_enabled, try to see if this method works on
> your platform. Independent of that, I would recommend you to upgrade to
> 5.5.10 which has several improvements related to ipv6 support.
>
> Regards,
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC  Berkel en Rodenrijs
> The Netherlands
> www.theaceorb.nl / www.remedy.nl
>
> *** Integrated compile and test statistics see
> http://scoreboard.theaceorb.nl <http://scoreboard.theaceorb.nl/>  ***
> *** Commercial service and support for ACE/TAO/CIAO             ***
> *** See http://www.theaceorb.nl/en/support.html                 ***
>
>
> ________________________________
>
>         From: ace-users-bounces at cse.wustl.edu
> [mailto:ace-users-bounces at cse.wustl.edu] On Behalf Of Premkumar P
>         Sent: Wednesday, August 01, 2007 10:08 AM
>         To: ace-users at cse.wustl.edu
>         Subject: [ace-users] question on ACE_INET_Addr
>
>
>         hi,
>            ACE VERSION: 5.5.8
>
>             HOST MACHINE and OPERATING SYSTEM: Windows XP
>                 If on Windows based OS's, which version of WINSOCK do you
>                 use?: winsock2
>
>             TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>             COMPILER NAME AND VERSION (AND PATCHLEVEL):
>
>             THE $ACE_ROOT/ace/config.h FILE [if you use a link to a
> platform-
>             specific file, simply state which one]: config-win32.h
>
>             THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if
> you
>             use a link to a platform-specific file, simply state which one
>             (unless this isn't used in this case, e.g., with Microsoft
> Visual
>             C++)]:
>
>             CONTENTS OF
> $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>             (used by MPC when you generate your own makefiles): ssl = 1,
> ipv6 = 1
>
>             AREA/CLASS/EXAMPLE AFFECTED:
>         [What example failed?  What module failed to compile?]
>          none
>
>             DOES THE PROBLEM AFFECT:
>                 COMPILATION? no
>                 LINKING?
>                     On Unix systems, did you run make realclean first? no
>                 EXECUTION? no
>                 OTHER (please specify)? ( question at bottom )
>         [Please indicate whether ACE, your application, or both are
> affected.]
>
>             SYNOPSIS:
>         [Brief description of the problem]
>           none
>
>             DESCRIPTION:
>           after building ACE with ipv6 support SOCK_Acceptor failed to
> work
>
>
>             REPEAT BY:
>         [What you did to get the error; include test program or session
>         transcript if at all possible.  ]
>
>             SAMPLE FIX/WORKAROUND:
>         [If available ]
>
>         here is what i am doing..
>
>         ACE_INET_Addr localaddr;
>         localaddr.set_port(portno);
>
>         SOCK_Acceptor acceptor;
>         acceptor.open(localaddr, ...);
>
>         every thing was working fine.. but when i recompiled ACE with ipv6
> support acceptor returns -1
>         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
>
>         here is my question:
>         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.
>         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 ??
>
>         thankx in advance
>
>         regards,
>         prem
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20070802/e2438cad/attachment-0001.htm


More information about the Ace-users mailing list