hi, <br>i tried it already but it does not work, i made a small change in INET_Addr.cpp and is working now ( for now that is !!!! ) <br><br>modification made : <br><br>/////////////////////////////////////////////////////////////////////////////////////////
<br><br>File : INET_Addr.cpp <br><br><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<br><br>ACE_INET_Addr::ACE_INET_Addr (u_short port_number,
<br> const char host_name[],<br> int address_family)<br> : ACE_Addr (determine_type (), sizeof (inet_addr_))<br>{<br> ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");
<br> ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_));<br> if (this->set (port_number,<br> host_name,<br> 1,<br> address_family) == -1)<br> ACE_ERROR ((LM_ERROR,
<br> ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr: %p\n"),<br> ACE_TEXT_CHAR_TO_TCHAR ((host_name == 0) ?<br> "<unknown>" : host_name)));
<br>}<br><br>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br><br>ACE_INET_Addr::ACE_INET_Addr (u_short port_number,
<br>
const char host_name[],<br>
int address_family)<br>
: ACE_Addr (determine_type (), sizeof (inet_addr_))<br>
{<br>
ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");<br>
ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_));<br>
if (this->set (port_number,<br>
host_name,<br>
1,<br>
(address_family == 0 ? get_type() : address_family)) == -1)<br>
ACE_ERROR ((LM_ERROR,<br>
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr: %p\n"),<br>
ACE_TEXT_CHAR_TO_TCHAR ((host_name == 0) ?<br>
"<unknown>" : host_name)));<br>
}<br><br>/////////////////////////////////////////////////////////////////////////////////////////<br><br><br>it is determining the type type properly in the constructory entry but the set function when called with address_family set to 0 will set the type to AF_INET6, i used the the guessed type if the address_family is not specified.
<br><br><br>if this is not the right place to make the modficiation please let me know <br><br>thankx in advance, <br>Prem<br><br><br><div><span class="gmail_quote">On 8/2/07, <b class="gmail_sendername">Phil Mesnier</b> <
<a href="mailto:mesnier_p@ociweb.com">mesnier_p@ociweb.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Premkumar P wrote:
<br>> hi,<br>> thankx for the reply<br>> i found ACE_USES_IPV4_IPV6_MIGRATION being used in ACE_INET_Addr to<br>> guess if ipv6 works or not and then set the type properly will this help ??<br>><br><br>Yes, I had forgotten about that switch. #define that in your
config.h<br>and rebuild.<br><br>--<br>Phil Mesnier<br>Principal Software Engineer, <a href="http://www.ociweb.com">http://www.ociweb.com</a><br>Object Computing, Inc. +01.314.579.0066<br></blockquote></div><br>