TsgcSTUNServer › 属性 › NotifyEvents
选择线程化服务器事件与主 VCL/FMX 线程同步的方式。
property NotifyEvents: TwsNotifyEvent read GetNotifyEvents write SetNotifyEvents;
—
定义用于分发 OnSTUN* 事件的线程模型:
TThread.Synchronize 传递;监听线程在处理程序返回之前被阻塞,对 UI 代码更安全,但会降低吞吐量。oSTUN.NotifyEvents := neAsynchronous;
oSTUN.Active := True;