On Thu, Jan 26, 2012 at 12:58 PM, gonzalo diethelm <gdiethelm at dcv.cl> wrote: > Perhaps you can have a getsockopt that returns just the "port" bound, and another that returns the full endpoint. Yay for over-design. :-/ How about a minimal plausible solution for binding to dynamic TCP ports, getting that working, and improving it over time? -Pieter