19 #ifndef GRPC_CORE_LIB_IOMGR_SOCKET_UTILS_POSIX_H 20 #define GRPC_CORE_LIB_IOMGR_SOCKET_UTILS_POSIX_H 26 #include <sys/socket.h> 138 int type,
int protocol,
grpc_error * grpc_create_dualstack_socket_using_factory(grpc_socket_factory *factory, const grpc_resolved_address *addr, int type, int protocol, grpc_dualstack_mode *dsmode, int *newfd)
The Socket Factory interface allows changes on socket options.
Definition: socket_factory_posix.h:43
An array of arguments that can be passed around.
Definition: grpc_types.h:132
grpc_error * grpc_set_socket_nonblocking(int fd, int non_blocking)
grpc_error * grpc_set_socket_tcp_user_timeout(int fd, const grpc_channel_args *channel_args, bool is_client)
grpc_error * grpc_set_socket_with_mutator(int fd, grpc_socket_mutator *mutator)
Definition: resolve_address.h:44
grpc_dualstack_mode
Definition: socket_utils_posix.h:103
Definition: error_internal.h:39
int grpc_accept4(int sockfd, grpc_resolved_address *resolved_addr, int nonblock, int cloexec)
grpc_error * grpc_set_socket_reuse_port(int fd, int reuse)
grpc_error * grpc_set_socket_ipv6_recvpktinfo_if_possible(int fd)
grpc_error * grpc_set_socket_sndbuf(int fd, int buffer_size_bytes)
int grpc_ipv6_loopback_available(void)
Definition: socket_utils_posix.h:109
grpc_error * grpc_set_socket_reuse_addr(int fd, int reuse)
grpc_error * grpc_set_socket_rcvbuf(int fd, int buffer_size_bytes)
grpc_error * grpc_set_socket_no_sigpipe_if_possible(int fd)
int grpc_forbid_dualstack_sockets_for_testing
grpc_error * grpc_apply_socket_mutator_in_args(int fd, const grpc_channel_args *args)
Definition: socket_utils_posix.h:107
void config_default_tcp_user_timeout(bool enable, int timeout, bool is_client)
grpc_error * grpc_set_socket_cloexec(int fd, int close_on_exec)
grpc_error * grpc_set_socket_low_latency(int fd, int low_latency)
The Socket Mutator interface allows changes on socket options.
Definition: socket_mutator.h:40
Definition: socket_utils_posix.h:111
Definition: socket_utils_posix.h:105
grpc_error * grpc_set_socket_ip_pktinfo_if_possible(int fd)
grpc_error * grpc_create_dualstack_socket(const grpc_resolved_address *addr, int type, int protocol, grpc_dualstack_mode *dsmode, int *newfd)
bool grpc_is_socket_reuse_port_supported()