TsgcSTUNClient › Properties › STUNOptions
STUN-specific options: FINGERPRINT, SOFTWARE attribute and Authentication credentials.
property STUNOptions: TsgcSTUNClient_Options read FSTUNOptions write SetSTUNOptions;
—
Controls STUN protocol behaviour of the client:
stcNone, stcShortTermCredentials or stcLongTermCredentials) and the Username/Password used to sign requests.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;