pub unsafe extern "C" fn CS104_Slave_setConnectionRequestHandler(
self_: CS104_Slave,
handler: CS104_ConnectionRequestHandler,
parameter: *mut c_void,
)Expand description
Set the connection request handler
The connection request handler is called whenever a client/master is trying to connect. This handler can be used to implement access control mechanisms as it allows the user to decide if the new connection is accepted or not.
ยงArguments
self- the slave instancehandler- the callback function to be usedparameter- user provided context parameter that will be passed to the callback function (or NULL if not required).