diff options
| author | Elliott Hughes <enh@google.com> | 2019-11-08 15:21:39 -0800 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2019-11-08 15:21:39 -0800 |
| commit | 5d96c6870ebcc1c4e9efe6dce427e1b1130b2cb6 (patch) | |
| tree | 5cfc8f9e4aff4fe269691cf9d3070c177452db84 /libcutils/sockets_unix.cpp | |
| parent | 2af27247b7706bf46c1acd94e3f50d33c4a72f77 (diff) | |
libcutils: remove unused socket_set_receive_timeout().
Test: treehugger
Change-Id: I834762fd83bdaa3b714c7531439bf9115a82e342
Diffstat (limited to 'libcutils/sockets_unix.cpp')
| -rw-r--r-- | libcutils/sockets_unix.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libcutils/sockets_unix.cpp b/libcutils/sockets_unix.cpp index 6acdcd89b2..84663e675f 100644 --- a/libcutils/sockets_unix.cpp +++ b/libcutils/sockets_unix.cpp @@ -31,13 +31,6 @@ int socket_close(int sock) { return close(sock); } -int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms) { - timeval tv; - tv.tv_sec = timeout_ms / 1000; - tv.tv_usec = (timeout_ms % 1000) * 1000; - return setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); -} - ssize_t socket_send_buffers(cutils_socket_t sock, const cutils_socket_buffer_t* buffers, size_t num_buffers) { |
