IPv6 and Python

Roy Smith roy at panix.com
Sat May 3 16:11:08 EDT 2008


In article "Giampaolo Rodola'" <gnewsg at gmail.com> wrote:

> I would be very interested in taking a look at how you implemented
> that part of code. Would it be possible?

Sadly, no.  It's proprietary code.  But, it's really not that complicated 
to reconstruct, once you know the basic idea.  You have a DualSocket class 
whose constructor creates two sockets.  It exposes (roughly) the same 
interface as a socket object, but decides which underlying 
protocol-specific socket to delegate to based on the address family of the 
sockaddr you give it.

Oh, yeah, this was done in C++, but there's nothing really that's language 
specific in the implementation.



More information about the Python-list mailing list