[ace-users] question on ACE_INET_Addr

Johnny Willemsen jwillemsen at remedy.nl
Wed Aug 1 03:15:28 CDT 2007


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
	
	
	




More information about the Ace-users mailing list