honza_b wrote:
Hi,
I'd like to know how to bind the server socket to listen on ipv6
address. I'm novice in ipv6 usage and now I use this piece of code:
{...
pServerSocketIpv6 =
do_CreateInstance("@mozilla.org/network/server-socket;1", &rv);
NS_ENSURE_SUCCESS(rv, rv);
NS_ASSERTION(pServerSocketIpv6 != nsnull, "Instance of server socket
is null");
PRNetAddr addr;
PR_SetNetAddr(PR_IpAddrAny, PR_AF_INET6, m_nPort, &addr);
rv = pServerSocketIpv6->InitWithAddress(&addr, 5);
NS_ENSURE_SUCCESS(rv, rv);
...}
There is an assert fail inside of the InitWithAddress().
Has any body any suggestion please?
Thanks.
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib
what assertion are you seeing?
-darin
_______________________________________________
Mozilla-netlib mailing list
Mozilla-netlib@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-netlib