commit | 756e1c81e84c7353e0e518d9b53065357d27937b | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Fri Jan 29 10:39:41 2016 -0800 |
committer | David Pursell <dpursell@google.com> | Tue Feb 02 09:52:02 2016 -0800 |
tree | 120a20778894c583c4721954f6b7bedd3637b156 | |
parent | 85c65dab429f1f47b6f07e26f9637084fb314eb5 [diff] |
libcutils: add socket_get_local_port(). Tests that require a local server currently hardcode a test value, which can run into conflicts depending on what's currently running on the machine. This CL adds socket_get_local_port(), which lets us pass 0 so the system picks an open port and we can query which port it chose. Bug: http://b/26236380 Change-Id: I01d1558884e7636081d9a357db6faa86929934f6