diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2023-01-06 10:06:45 +0000 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2023-01-06 10:06:45 +0000 |
| commit | 9a44d00480888cb11c614034489cc048d798f40f (patch) | |
| tree | 5164d990b27973e1e0628796424e23e93234ac77 /VARA.c | |
| parent | 90bdcbe130dbbc9985a7a8477628a4e3532e45f0 (diff) | |
6.0.23.3623.42
Diffstat (limited to 'VARA.c')
| -rw-r--r-- | VARA.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -104,6 +104,8 @@ BOOL VARAStopPort(struct PORTCONTROL * PORT) if (TNC->Streams[0].Attached)
TNC->Streams[0].ReportDISC = TRUE;
+ TNC->Streams[0].Disconnecting = FALSE;
+
if (TNC->TCPSock)
{
shutdown(TNC->TCPSock, SD_BOTH);
@@ -328,6 +330,7 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff) }
}
+ TNC->Streams[0].Disconnecting = FALSE;
switch (fn)
{
@@ -486,7 +489,6 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff) sprintf(Msg, "%d SCANSTOP", TNC->Port);
Rig_Command(-1, Msg);
-
}
if (TNC->Streams[0].Attached)
@@ -714,6 +716,8 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff) TNC->OverrideBusy = FALSE;
VARASendCommand(TNC, Connect, TRUE);
+ TNC->Streams[0].ConnectTime = time(NULL);
+
memset(TNC->Streams[0].RemoteCall, 0, 10);
strcpy(TNC->Streams[0].RemoteCall, &buff->L2DATA[2]);
@@ -2251,6 +2255,9 @@ VOID VARAProcessReceivedData(struct TNCINFO * TNC) if (TNC->Streams[0].Attached)
TNC->Streams[0].ReportDISC = TRUE;
+ TNC->Streams[0].Disconnecting = FALSE;
+
+
closesocket(TNC->TCPDataSock);
TNC->TCPSock = 0;
@@ -2296,6 +2303,8 @@ VOID VARAProcessReceivedControl(struct TNCINFO * TNC) TNC->CONNECTED = FALSE;
TNC->Streams[0].ReportDISC = TRUE;
+ TNC->Streams[0].Disconnecting = FALSE;
+
sprintf(TNC->WEB_COMMSSTATE, "Connection to TNC lost");
MySetWindowText(TNC->xIDC_COMMSSTATE, TNC->WEB_COMMSSTATE);
|
