Function gnunet_sys::GNUNET_CLIENT_connect [−][src]
pub unsafe extern "C" fn GNUNET_CLIENT_connect(
cfg: *const GNUNET_CONFIGURATION_Handle,
service_name: *const c_char,
handlers: *const GNUNET_MQ_MessageHandler,
error_handler: GNUNET_MQ_ErrorHandler,
error_handler_cls: *mut c_void
) -> *mut GNUNET_MQ_Handle
Create a message queue to connect to a GNUnet service. If handlers are specified, receive messages from the connection.
@param connection the client connection @param handlers handlers for receiving messages, can be NULL @param error_handler error handler @param error_handler_cls closure for the @a error_handler @return the message queue, NULL on error