summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorDavid Pursell <dpursell@google.com>2016-01-29 10:39:41 -0800
committerDavid Pursell <dpursell@google.com>2016-02-02 09:52:02 -0800
commit037c6bfbc46afef63e3733bde8da54b0de9c3376 (patch)
tree120a20778894c583c4721954f6b7bedd3637b156 /libcutils/sockets_unix.cpp
parentaa6e826079d4f013e8c6f44c8f1cc244b190bfc9 (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
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions