Function grpcio_sys::grpc_server_register_method [−][src]
pub unsafe extern "C" fn grpc_server_register_method(
server: *mut grpc_server,
method: *const c_char,
host: *const c_char,
payload_handling: grpc_server_register_method_payload_handling,
flags: u32
) -> *mut c_void
Registers a method in the server. Methods to this (host, method) pair will not be reported by grpc_server_request_call, but instead be reported by grpc_server_request_registered_call when passed the appropriate registered_method (as returned by this function). Must be called before grpc_server_start. Returns NULL on failure.