commit | 5bc5f2cf6d706241c6c87e3ebc22eb14cd49306b | [log] [tgz] |
---|---|---|
author | James Ring <sjr@jdns.org> | Wed Feb 04 17:37:42 2015 -0800 |
committer | James Ring <sjr@jdns.org> | Wed Feb 04 17:38:41 2015 -0800 |
tree | efc010cc2f8208657071dcedc59304cb15a843eb | |
parent | 57c08cdb399bc2f44a516c08242731627958de83 [diff] |
veyron/tools/findunusedport: move find port logic to common lib This CL moves findunusedport logic to a common location inside veyron/lib/testutil. It also changes the port-finding logic to use bind(port=0) and a subsequent call to getsockname to find an unused port. Tested by hand. Change-Id: I7ea13e23e47038d9b43db60c6a1a74371ae8ce0a