TsgcSTUNClient › Propiedades › STUNOptions
Opciones específicas de STUN: atributos FINGERPRINT, SOFTWARE y credenciales de autenticación.
property STUNOptions: TsgcSTUNClient_Options read FSTUNOptions write SetSTUNOptions;
—
Controla el comportamiento del protocolo STUN en el cliente:
stcNone, stcShortTermCredentials o stcLongTermCredentials) y el nombre de usuario/contraseña utilizados para firmar las solicitudes.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;