The great {sendto,recvfrom} => {send,recv}msg conversion effort.
Created by: fingon
My proposal how to handle IP{v4,v6} sockets. It seems to work on OS X and Linux at least. Only big question mark is the SA_LEN macro #ifdef, in my mind, perhaps just using _sa_len everywhere would be more portable.