diff options
author | Dan Zhang <danzh@google.com> | 2018-04-12 11:15:57 -0400 |
---|---|---|
committer | Dan Zhang <danzh@google.com> | 2018-04-12 11:15:57 -0400 |
commit | 8c2314093b33458c2cc1f003524c5f09306fae82 (patch) | |
tree | e20cfa39dbb88d428502d4c43612dfb7a665e7a7 /src/core/lib/iomgr/socket_utils_posix.h | |
parent | 074439e7d72837247e1300433fd7fddd97f99b67 (diff) |
Allow udp_server to create multiple listeners for each port via SO_REUSEPORT
Diffstat (limited to 'src/core/lib/iomgr/socket_utils_posix.h')
-rw-r--r-- | src/core/lib/iomgr/socket_utils_posix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/socket_utils_posix.h b/src/core/lib/iomgr/socket_utils_posix.h index 1f50e8d315..b3fd58a530 100644 --- a/src/core/lib/iomgr/socket_utils_posix.h +++ b/src/core/lib/iomgr/socket_utils_posix.h @@ -44,6 +44,9 @@ grpc_error* grpc_set_socket_cloexec(int fd, int close_on_exec); /* set a socket to reuse old addresses */ grpc_error* grpc_set_socket_reuse_addr(int fd, int reuse); +/* return true if SO_REUSEPORT is supported */ +bool grpc_is_socket_reuse_port_supported(); + /* disable nagle */ grpc_error* grpc_set_socket_low_latency(int fd, int low_latency); |