On 29/07/09 01:21, Juan Lang wrote:
This makes the expression rather long, and also makes it hard to
extend beyond two address families.  ws2_32 also supports IPX, and
with any luck it'll soon support IrDA.

I'll send mine in shortly, and you can complain if you like :)
  
That's ok.  I had a version that used a case statement but I tried to make it more compact as AJ seems to favour that more.