Anonymous
public text v1 · immutable//on hosting start
if NATRadioGroup.ItemIndex = 1 then // "hole punching" method
begin
// let's acquire our public UDP source port from the server:
InitWaitForm.ChangeCaption(MSG_GETHOSTPORT);
InitWaitForm.TakeAction := 2; // get host port
res := InitWaitForm.ShowModal;
if res <> mrOK then
begin
MessageDlg('Unable to acquire UDP source port from server. Try choosing another NAT traversal technique!', mtWarning, [mbOK], 0);
Exit;
end;
end;