CS104_Slave_createSecure

Function CS104_Slave_createSecure 

Source
pub unsafe extern "C" fn CS104_Slave_createSecure(
    maxLowPrioQueueSize: c_int,
    maxHighPrioQueueSize: c_int,
    tlsConfig: TLSConfiguration,
) -> CS104_Slave
Expand description

Create a new instance of a CS104 slave (server) with TLS enabled

§Arguments

  • maxLowPrioQueueSize - the maximum size of the event queue
  • maxHighPrioQueueSize - the maximum size of the high-priority queue
  • tlsConfig - the TLS configuration object (containing configuration parameters, keys, and certificates)

§Returns

the new slave instance