TsgcSTUNClient › Propriétés › STUNOptions
Options spécifiques à STUN : FINGERPRINT, attribut SOFTWARE et informations d'identification d'authentification.
property STUNOptions: TsgcSTUNClient_Options read FSTUNOptions write SetSTUNOptions;
—
Contrôle le comportement du protocole STUN du client :
stcNone, stcShortTermCredentials ou stcLongTermCredentials) ainsi que le nom d'utilisateur/mot de passe utilisés pour signer les requêtes.oSTUN.STUNOptions.Fingerprint := True;
oSTUN.STUNOptions.Software := True;
oSTUN.STUNOptions.Authentication.Credentials := stcLongTermCredentials;
oSTUN.STUNOptions.Authentication.Username := 'user';
oSTUN.STUNOptions.Authentication.Password := 'secret';
oSTUN.SendRequest;