UWNetworksLab/freedom — pull request #55 by yangoon (2014-03-05 17:02:43+00:00)
Title: add getInfo method

So, when you call bind with port zero the system will choose a free port for you. Turns out that's pretty handy for some stuff I'm working on. This surfaces the getInfo call, with which you can query the bound port (and address).

Open to suggestions on whether it's better to have separate getPort() and getAddress() calls vs. this catch-all getInfo().