CS104_Connection_createSecure

Function CS104_Connection_createSecure 

Source
pub unsafe extern "C" fn CS104_Connection_createSecure(
    hostname: *const c_char,
    tcpPort: c_int,
    tlsConfig: TLSConfiguration,
) -> CS104_Connection
Expand description

Create a new secure connection object (uses TLS)

§Arguments

  • hostname - host name of IP address of the server to connect
  • tcpPort - tcp port of the server to connect. If set to -1 use default port (19998)
  • tlcConfig - the TLS configuration (certificates, keys, and parameters)

§Returns

the new connection object