aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/socket_utils_posix.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-09 07:50:50 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-06-09 07:50:50 -0700
commit0ca68b7cb19d2735f965d283b9974d8cd42df51d (patch)
tree10abff4f54d5c109e8aa813a340729ba1ef2689f /src/core/lib/iomgr/socket_utils_posix.h
parent16ebf5a124026f8e9d59894b214d2e743590a93e (diff)
parent1bc2976a0f51e14d3525aecbf4b3450445ed2d1b (diff)
Merge github.com:grpc/grpc into error
Diffstat (limited to 'src/core/lib/iomgr/socket_utils_posix.h')
-rw-r--r--src/core/lib/iomgr/socket_utils_posix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/socket_utils_posix.h b/src/core/lib/iomgr/socket_utils_posix.h
index 4e66cbc0c5..4cbfc342e4 100644
--- a/src/core/lib/iomgr/socket_utils_posix.h
+++ b/src/core/lib/iomgr/socket_utils_posix.h
@@ -80,6 +80,14 @@ grpc_error *grpc_set_socket_ip_pktinfo_if_possible(int fd);
If IPV6_RECVPKTINFO is not available, returns 1. */
grpc_error *grpc_set_socket_ipv6_recvpktinfo_if_possible(int fd);
+/* Tries to set the socket's send buffer to given size.
+ Returns 1 on success, 0 on failure. */
+int grpc_set_socket_sndbuf(int fd, int buffer_size_bytes);
+
+/* Tries to set the socket's receive buffer to given size.
+ Returns 1 on success, 0 on failure. */
+int grpc_set_socket_rcvbuf(int fd, int buffer_size_bytes);
+
/* An enum to keep track of IPv4/IPv6 socket modes.
Currently, this information is only used when a socket is first created, but