Skip to content
Snippets Groups Projects
Commit 4070d9b5 authored by rswindell's avatar rswindell
Browse files

Chane BBS_OPT_SEND_TELNET_GA to BBS_OPT_NO_TELNET_NOP.

parent ad8e6e5a
No related branches found
No related tags found
No related merge requests found
...@@ -610,7 +610,7 @@ __fastcall TMainForm::TMainForm(TComponent* Owner) ...@@ -610,7 +610,7 @@ __fastcall TMainForm::TMainForm(TComponent* Owner)
bbs_startup.size=sizeof(bbs_startup); bbs_startup.size=sizeof(bbs_startup);
bbs_startup.first_node=1; bbs_startup.first_node=1;
bbs_startup.last_node=4; bbs_startup.last_node=4;
bbs_startup.options=BBS_OPT_XTRN_MINIMIZED|BBS_OPT_SYSOP_AVAILABLE|BBS_OPT_SEND_TELNET_GA; bbs_startup.options=BBS_OPT_XTRN_MINIMIZED|BBS_OPT_SYSOP_AVAILABLE;
bbs_startup.telnet_port=IPPORT_TELNET; bbs_startup.telnet_port=IPPORT_TELNET;
bbs_startup.telnet_interface=INADDR_ANY; bbs_startup.telnet_interface=INADDR_ANY;
bbs_startup.rlogin_port=513; bbs_startup.rlogin_port=513;
......
...@@ -88,7 +88,8 @@ void __fastcall TTelnetCfgDlg::FormShow(TObject *Sender) ...@@ -88,7 +88,8 @@ void __fastcall TTelnetCfgDlg::FormShow(TObject *Sender)
AnswerSoundEdit->Text=AnsiString(MainForm->bbs_startup.answer_sound); AnswerSoundEdit->Text=AnsiString(MainForm->bbs_startup.answer_sound);
HangupSoundEdit->Text=AnsiString(MainForm->bbs_startup.hangup_sound); HangupSoundEdit->Text=AnsiString(MainForm->bbs_startup.hangup_sound);
CmdLogCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_DEBUG_TELNET; CmdLogCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_DEBUG_TELNET;
TelnetGaCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_SEND_TELNET_GA; TelnetNopCheckBox->Checked
=!(MainForm->bbs_startup.options&BBS_OPT_NO_TELNET_NOP);
XtrnMinCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_XTRN_MINIMIZED; XtrnMinCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_XTRN_MINIMIZED;
AutoLogonCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_AUTO_LOGON; AutoLogonCheckBox->Checked=MainForm->bbs_startup.options&BBS_OPT_AUTO_LOGON;
HostnameCheckBox->Checked HostnameCheckBox->Checked
...@@ -164,10 +165,10 @@ void __fastcall TTelnetCfgDlg::OKBtnClick(TObject *Sender) ...@@ -164,10 +165,10 @@ void __fastcall TTelnetCfgDlg::OKBtnClick(TObject *Sender)
,AnswerSoundEdit->Text.c_str()); ,AnswerSoundEdit->Text.c_str());
SAFECOPY(MainForm->bbs_startup.hangup_sound SAFECOPY(MainForm->bbs_startup.hangup_sound
,HangupSoundEdit->Text.c_str()); ,HangupSoundEdit->Text.c_str());
if(TelnetGaCheckBox->Checked==true) if(TelnetNopCheckBox->Checked==false)
MainForm->bbs_startup.options|=BBS_OPT_SEND_TELNET_GA; MainForm->bbs_startup.options|=BBS_OPT_NO_TELNET_NOP;
else else
MainForm->bbs_startup.options&=~BBS_OPT_SEND_TELNET_GA; MainForm->bbs_startup.options&=~BBS_OPT_NO_TELNET_NOP;
if(XtrnMinCheckBox->Checked==true) if(XtrnMinCheckBox->Checked==true)
MainForm->bbs_startup.options|=BBS_OPT_XTRN_MINIMIZED; MainForm->bbs_startup.options|=BBS_OPT_XTRN_MINIMIZED;
else else
......
...@@ -197,15 +197,15 @@ object TelnetCfgDlg: TTelnetCfgDlg ...@@ -197,15 +197,15 @@ object TelnetCfgDlg: TTelnetCfgDlg
ShowHint = True ShowHint = True
TabOrder = 0 TabOrder = 0
end end
object TelnetGaCheckBox: TCheckBox object TelnetNopCheckBox: TCheckBox
Left = 9 Left = 9
Top = 76 Top = 76
Width = 208 Width = 208
Height = 26 Height = 26
Hint = Hint =
'Send periodic Telnet GA commands to help detect dropped connecti' + 'Send periodic Telnet NOP commands to help detect dropped connect' +
'ons.' 'ions'
Caption = 'Send Telnet Go-Aheads' Caption = 'Send Telnet NOPs'
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 2 TabOrder = 2
......
...@@ -79,7 +79,7 @@ __published: ...@@ -79,7 +79,7 @@ __published:
TEdit *TelnetInterfaceEdit; TEdit *TelnetInterfaceEdit;
TLabel *TelnetPortLabel; TLabel *TelnetPortLabel;
TEdit *TelnetPortEdit; TEdit *TelnetPortEdit;
TCheckBox *TelnetGaCheckBox; TCheckBox *TelnetNopCheckBox;
TCheckBox *AutoLogonCheckBox; TCheckBox *AutoLogonCheckBox;
TTabSheet *RLoginTabSheet; TTabSheet *RLoginTabSheet;
TLabel *RLoginPortLabel; TLabel *RLoginPortLabel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment