diff options
author | Robbie Shade <rjshade@google.com> | 2015-09-17 11:18:09 -0400 |
---|---|---|
committer | Robbie Shade <rjshade@google.com> | 2015-09-17 11:18:09 -0400 |
commit | 9ab3704a9959bf9f4eec3b7343afa1c50a7195f5 (patch) | |
tree | 51df677acf940116d033a96709f0a18f6ad7a33b /src/core/iomgr/udp_server.h | |
parent | f798b779fc35e0be603f07589f3f27efa316da7f (diff) | |
parent | 19c06494b5144a9e21a12801140201a647752a4c (diff) |
Merge remote-tracking branch 'upstream/master' into rename_callback
Diffstat (limited to 'src/core/iomgr/udp_server.h')
-rw-r--r-- | src/core/iomgr/udp_server.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/iomgr/udp_server.h b/src/core/iomgr/udp_server.h index 389f84ecca..c930e81cbc 100644 --- a/src/core/iomgr/udp_server.h +++ b/src/core/iomgr/udp_server.h @@ -39,21 +39,15 @@ /* Forward decl of grpc_udp_server */ typedef struct grpc_udp_server grpc_udp_server; -/* New server callback: ep is the newly connected connection */ -typedef void (*grpc_udp_server_cb)(void *arg, grpc_endpoint *ep); - /* Called when data is available to read from the socket. */ -typedef void (*grpc_udp_server_read_cb)(int fd, - grpc_udp_server_cb new_transport_cb, - void *cb_arg); +typedef void (*grpc_udp_server_read_cb)(int fd); /* Create a server, initially not bound to any ports */ grpc_udp_server *grpc_udp_server_create(void); /* Start listening to bound ports */ -void grpc_udp_server_start(grpc_udp_server *server, grpc_pollset **pollsets, - size_t pollset_count, grpc_udp_server_cb cb, - void *cb_arg); +void grpc_udp_server_start(grpc_udp_server *udp_server, grpc_pollset **pollsets, + size_t pollset_count); int grpc_udp_server_get_fd(grpc_udp_server *s, unsigned index); |