Type Definition gnunet_sys::GNUNET_SERVICE_ConnectHandler[][src]

type GNUNET_SERVICE_ConnectHandler = Option<unsafe extern "C" fn(cls: *mut c_void, c: *mut GNUNET_SERVICE_Client, mq: *mut GNUNET_MQ_Handle) -> *mut c_void>;

Callback to be called when a client connects to the service.

@param cls closure for the service @param c the new client that connected to the service @param mq the message queue used to send messages to the client @return the client-specific (`internal’) closure