Portable IPv6 support for purple_network_listen

Paul Aurich paul at darkrain42.org
Fri Apr 16 00:44:36 EDT 2010

On 2010-04-12 19:50, Paul Aurich wrote:
> I'd like to add explicit protocol support to purple_network_listen and
> purple_network_listen_range, so that callers can request either an IPv4
> or IPv6 socket (there's an IPv6 feature on some stacks that allows a
> socket to accept either IPv4 or IPv6 connections, but support on
> non-Linux, non-OS X platforms is limited (and at least Debian plans on
> having it disabled by default in Squeeze), so the portable solution,
> IMHO, is to explicitly use two sockets).

After talking with Mark and Ethan in devel at cpi, here's an updated patch.
 With this version, callers can only use one socket if they generate an
IPv6 listener and purple_socket_speaks_ipv4(socket) returns TRUE, though
callers still must handle the case where it's FALSE (or, in most cases,
just use IPv4 since the protocol doesn't support (or hasn't been REd)
IPv6 ;) ).

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: listen-ipv6-2.patch
URL: <http://pidgin.im/pipermail/devel/attachments/20100415/5c9efd06/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20100415/5c9efd06/attachment.sig>

More information about the Devel mailing list