smitajit
smitajit

Reputation: 31

ACE how to enable IPv6

I am using ACE v5.7.1 in linux. I want to enable ipv6 so that my server can accept ipv6 requests also.i have added #define ACE_HAS_IPV6 in the ace/config.h file.But still the return value from the method ACE_ipv6_enabled() is 0

when i create a simple client with ACE_INET_Addr(port,ipv6_address) and trying to connect the server it is giving error ACE_INET_Addr :: permission denied

Please help me.

Upvotes: 3

Views: 1858

Answers (1)

Karlson
Karlson

Reputation: 3038

You seem to be using the Incorrect constructor for this. Take a look at this link:

http://www.dre.vanderbilt.edu/Doxygen/5.7.1/html/ace/a00246.html#0ef39cee9fc65be37ca6ce4092b6ea04

You will need to call it similar to the following:

ACE_INET_Addr(port, <hostname e.g. "localhost6">, AF_INET6);

By default you have AF_UNSPEC which will probably assume AF_INET

Upvotes: 1

Related Questions