TsgcSTUNServerProperties › Active

Active Property

Starts or stops the STUN server; set to True to begin listening for Binding Requests.

Syntax

property Active: Boolean read GetActive write SetActive;

Default Value

Remarks

Set Active to True to open the UDP socket on Host/Port and start processing incoming STUN Binding Requests. Set it to False to stop the server, close every binding and release the listener threads. Configure Port, STUNOptions and any AddBinding entries before activation; changes that affect the socket layout require the server to be restarted to take effect.

Example

oSTUN := TsgcSTUNServer.Create(nil);
oSTUN.Port := 3478;
oSTUN.Active := True;

Back to Properties