aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/udp_server.h
diff options
context:
space:
mode:
authorGravatar Robbie Shade <rjshade@google.com>2015-09-17 11:18:09 -0400
committerGravatar Robbie Shade <rjshade@google.com>2015-09-17 11:18:09 -0400
commit9ab3704a9959bf9f4eec3b7343afa1c50a7195f5 (patch)
tree51df677acf940116d033a96709f0a18f6ad7a33b /src/core/iomgr/udp_server.h
parentf798b779fc35e0be603f07589f3f27efa316da7f (diff)
parent19c06494b5144a9e21a12801140201a647752a4c (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.h12
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);