GRPC Core  0.11.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
udp_server.h File Reference
#include "src/core/iomgr/endpoint.h"

Go to the source code of this file.

Typedefs

typedef struct grpc_udp_server grpc_udp_server
 
typedef void(* grpc_udp_server_cb )(void *arg, grpc_endpoint *ep)
 
typedef void(* grpc_udp_server_read_cb )(int fd, grpc_udp_server_cb new_transport_cb, void *cb_arg)
 

Functions

grpc_udp_servergrpc_udp_server_create (void)
 
void grpc_udp_server_start (grpc_udp_server *server, grpc_pollset **pollsets, size_t pollset_count, grpc_udp_server_cb cb, void *cb_arg)
 
int grpc_udp_server_get_fd (grpc_udp_server *s, unsigned index)
 
int grpc_udp_server_add_port (grpc_udp_server *s, const void *addr, int addr_len, grpc_udp_server_read_cb read_cb)
 
void grpc_udp_server_destroy (grpc_udp_server *server, void(*shutdown_done)(void *shutdown_done_arg), void *shutdown_done_arg)
 

Typedef Documentation

typedef void(* grpc_udp_server_cb)(void *arg, grpc_endpoint *ep)
typedef void(* grpc_udp_server_read_cb)(int fd, grpc_udp_server_cb new_transport_cb, void *cb_arg)

Function Documentation

int grpc_udp_server_add_port ( grpc_udp_server s,
const void *  addr,
int  addr_len,
grpc_udp_server_read_cb  read_cb 
)
grpc_udp_server* grpc_udp_server_create ( void  )
void grpc_udp_server_destroy ( grpc_udp_server server,
void(*)(void *shutdown_done_arg)  shutdown_done,
void *  shutdown_done_arg 
)
int grpc_udp_server_get_fd ( grpc_udp_server s,
unsigned  index 
)
void grpc_udp_server_start ( grpc_udp_server server,
grpc_pollset **  pollsets,
size_t  pollset_count,
grpc_udp_server_cb  cb,
void *  cb_arg 
)