diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-12-03 18:38:59 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-12-03 18:38:59 -0500 |
| commit | d5615fd6f84e643f194be8c3e91343b35585eb9c (patch) | |
| tree | 03e3a16afe1fc8e383ffaf3493a016fc13948de7 /lib/sockopt.h | |
| parent | 267dc19825eb1e5281fd6f6990bf0ee7c4664604 (diff) | |
lib: Allow setsockopt functions to return size set
When finding a send/receive buffer size that is usable
let's report how big we were able to set it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/sockopt.h')
| -rw-r--r-- | lib/sockopt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sockopt.h b/lib/sockopt.h index e6fb78d5e4..cbf988cbe7 100644 --- a/lib/sockopt.h +++ b/lib/sockopt.h @@ -12,8 +12,8 @@ extern "C" { #endif -extern void setsockopt_so_recvbuf(int sock, int size); -extern void setsockopt_so_sendbuf(const int sock, int size); +extern int setsockopt_so_recvbuf(int sock, int size); +extern int setsockopt_so_sendbuf(const int sock, int size); extern int getsockopt_so_sendbuf(const int sock); extern int getsockopt_so_recvbuf(const int sock); |
