Go to the documentation of this file.
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_set_socket_rcvbuf(int fd, int buffer_size_bytes)
The Socket Factory interface allows changes on socket options.
Definition: socket_factory_posix.h:43
grpc_error * grpc_set_socket_ipv6_recvpktinfo_if_possible(int fd)
@ GRPC_DSMODE_NONE
Definition: socket_utils_posix.h:105
@ GRPC_DSMODE_IPV6
Definition: socket_utils_posix.h:109
grpc_error * grpc_set_socket_nonblocking(int fd, int non_blocking)
Definition: resolve_address.h:44
An array of arguments that can be passed around.
Definition: grpc_types.h:132
grpc_error * grpc_set_socket_cloexec(int fd, int close_on_exec)
int grpc_ipv6_loopback_available(void)
@ GRPC_DSMODE_DUALSTACK
Definition: socket_utils_posix.h:111
bool grpc_is_socket_reuse_port_supported()
int grpc_accept4(int sockfd, grpc_resolved_address *resolved_addr, int nonblock, int cloexec)
grpc_error * grpc_set_socket_sndbuf(int fd, int buffer_size_bytes)
grpc_error * grpc_set_socket_reuse_port(int fd, int reuse)
grpc_error * grpc_apply_socket_mutator_in_args(int fd, const grpc_channel_args *args)
The Socket Mutator interface allows changes on socket options.
Definition: socket_mutator.h:40
int grpc_forbid_dualstack_sockets_for_testing
grpc_error * grpc_set_socket_ip_pktinfo_if_possible(int fd)
@ GRPC_DSMODE_IPV4
Definition: socket_utils_posix.h:107
grpc_error * grpc_set_socket_no_sigpipe_if_possible(int fd)
grpc_error * grpc_set_socket_reuse_addr(int fd, int reuse)
grpc_error * grpc_set_socket_with_mutator(int fd, grpc_socket_mutator *mutator)
grpc_dualstack_mode
Definition: socket_utils_posix.h:103
void config_default_tcp_user_timeout(bool enable, int timeout, bool is_client)
Definition: error_internal.h:39
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)
grpc_error * grpc_create_dualstack_socket(const grpc_resolved_address *addr, int type, int protocol, grpc_dualstack_mode *dsmode, int *newfd)
grpc_error * grpc_set_socket_low_latency(int fd, int low_latency)
grpc_error * grpc_set_socket_tcp_user_timeout(int fd, const grpc_channel_args *channel_args, bool is_client)