|
|
|
@ -285,7 +285,7 @@ static int bind_socket(grpc_socket_factory* socket_factory, int sockfd, |
|
|
|
|
/* Prepare a recently-created socket for listening. */ |
|
|
|
|
static int prepare_socket(grpc_socket_factory* socket_factory, int fd, |
|
|
|
|
const grpc_resolved_address* addr, |
|
|
|
|
size_t rcv_buf_size, size_t snd_buf_size) { |
|
|
|
|
int rcv_buf_size, int snd_buf_size) { |
|
|
|
|
grpc_resolved_address sockname_temp; |
|
|
|
|
struct sockaddr* addr_ptr = (struct sockaddr*)addr->addr; |
|
|
|
|
|
|
|
|
@ -461,7 +461,7 @@ static void on_write(void* arg, grpc_error* error) { |
|
|
|
|
|
|
|
|
|
static int add_socket_to_server(grpc_udp_server* s, int fd, |
|
|
|
|
const grpc_resolved_address* addr, |
|
|
|
|
size_t rcv_buf_size, size_t snd_buf_size, |
|
|
|
|
int rcv_buf_size, int snd_buf_size, |
|
|
|
|
grpc_udp_server_start_cb start_cb, |
|
|
|
|
grpc_udp_server_read_cb read_cb, |
|
|
|
|
grpc_udp_server_write_cb write_cb, |
|
|
|
@ -507,7 +507,7 @@ static int add_socket_to_server(grpc_udp_server* s, int fd, |
|
|
|
|
|
|
|
|
|
int grpc_udp_server_add_port(grpc_udp_server* s, |
|
|
|
|
const grpc_resolved_address* addr, |
|
|
|
|
size_t rcv_buf_size, size_t snd_buf_size, |
|
|
|
|
int rcv_buf_size, int snd_buf_size, |
|
|
|
|
grpc_udp_server_start_cb start_cb, |
|
|
|
|
grpc_udp_server_read_cb read_cb, |
|
|
|
|
grpc_udp_server_write_cb write_cb, |
|
|
|
|