Function s2n_quic_tls::ffi::s2n_get_server_name
source · pub unsafe extern "C" fn s2n_get_server_name(
conn: *mut s2n_connection
) -> *const i8
Expand description
Query the connection for the selected server name.
This can be used by a server to determine which server name the client is using. This function returns the first ServerName entry in the ServerNameList sent by the client. Subsequent entries are not returned.
@param conn The connection object being queried @returns The server name associated with a connection, or NULL if none is found.