CS104_ConnectionRequestHandler

Type Alias CS104_ConnectionRequestHandler 

Source
pub type CS104_ConnectionRequestHandler = Option<unsafe extern "C" fn(parameter: *mut c_void, ipAddress: *const c_char) -> bool>;
Expand description

Connection request handler is called when a client tries to connect to the server.

§Arguments

  • parameter - user provided parameter
  • ipAddress - string containing IP address and TCP port number (e.g. “192.168.1.1:34521”)

§Returns

true to accept the connection request, false to deny

Aliased Type§

pub enum CS104_ConnectionRequestHandler {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const u8) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *const u8) -> bool)

Some value of type T.