TsgcTURNClient › Methods › SendRequest
Inherited generic STUN request used to send a Binding Request over the TURN transport.
function SendRequest: Boolean;
True when the request was successfully handed off to the transport for sending; False if the socket could not be opened. (Boolean)
Inherited from TsgcSTUNClient. Sends a plain STUN Binding Request (RFC 5389) to the configured Host using the same socket that carries TURN traffic. This is useful when the TURN server also doubles as a STUN server (common with coturn) and the application wants to discover its reflexive transport address without opening a second connection.
The response surfaces through the standard OnSTUNResponseSuccess or OnSTUNResponseError events.
if oTURN.SendRequest then
DoLog('STUN Binding Request sent on TURN transport');