> Since I don't think your name is Steve, you're going to touch that, > please get rid of the PORT_MAX_LEN/calloc/snprintf dance and just use > asprintf() instead so I don't need more therapy reading it.. (look at > my eye twitching...)
The part I find most incredible in the code is... ntohs(atoi(portlist[i])), and then digging deeper... to see how the portname (as a string) is passed down to socks... and reversed into an integer... AGhh... I just went blind.