diff options
author | Michael Warres <mwarres@gmail.com> | 2017-03-14 23:48:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 23:48:25 -0400 |
commit | 3cafec2f55f66e3df61569579c8259b2e5b5ee00 (patch) | |
tree | 43028780e45467bf523c8dfd646f77fffc9b92e8 /test | |
parent | ad3fdb6784a83a1a30aec11967bd91c845abd235 (diff) | |
parent | 456ddd83df4ee8305fdd209893acd43a1444e362 (diff) |
Merge pull request #10021 from mpwarres/udp_server_user_data
Remove grpc_udp_server dependency on grpc_server.
Diffstat (limited to 'test')
-rw-r--r-- | test/core/iomgr/udp_server_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/iomgr/udp_server_test.c b/test/core/iomgr/udp_server_test.c index d57a37b2a9..396ec959cd 100644 --- a/test/core/iomgr/udp_server_test.c +++ b/test/core/iomgr/udp_server_test.c @@ -62,8 +62,7 @@ static int g_number_of_writes = 0; static int g_number_of_bytes_read = 0; static int g_number_of_orphan_calls = 0; -static void on_read(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, - grpc_server *server) { +static void on_read(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, void *user_data) { char read_buffer[512]; ssize_t byte_count; @@ -79,7 +78,7 @@ static void on_read(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, gpr_mu_unlock(g_mu); } -static void on_write(grpc_exec_ctx *exec_ctx, grpc_fd *emfd) { +static void on_write(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, void *user_data) { gpr_mu_lock(g_mu); g_number_of_writes++; @@ -88,7 +87,8 @@ static void on_write(grpc_exec_ctx *exec_ctx, grpc_fd *emfd) { gpr_mu_unlock(g_mu); } -static void on_fd_orphaned(grpc_exec_ctx *exec_ctx, grpc_fd *emfd) { +static void on_fd_orphaned(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, + void *user_data) { gpr_log(GPR_INFO, "gRPC FD about to be orphaned: %d", grpc_fd_wrapped_fd(emfd)); g_number_of_orphan_calls++; |