[ace-users] question on ACE_INET_Addr
Premkumar P
kumaran.prem at gmail.com
Wed Aug 1 03:08:10 CDT 2007
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/20070801/6e415282/attachment.htm
More information about the Ace-users
mailing list