Alpha 18 sync
This commit is contained in:
parent
6410bb30d4
commit
38311ddf58
|
@ -140,6 +140,7 @@ Begin
|
||||||
BlockRead (PipeInput, Buffer[0], Len, bRead);
|
BlockRead (PipeInput, Buffer[0], Len, bRead);
|
||||||
|
|
||||||
If IsClient And TimerUp(ResetTimer) Then Begin
|
If IsClient And TimerUp(ResetTimer) Then Begin
|
||||||
|
|
||||||
Ch := #1;
|
Ch := #1;
|
||||||
|
|
||||||
SendToPipe(Ch, 1);
|
SendToPipe(Ch, 1);
|
||||||
|
|
|
@ -170,8 +170,10 @@ Begin
|
||||||
GOTCRCW : Result := 'GOTCRCW';
|
GOTCRCW : Result := 'GOTCRCW';
|
||||||
ZCRC : Result := 'ZCRC';
|
ZCRC : Result := 'ZCRC';
|
||||||
Else
|
Else
|
||||||
Result := 'UNKNOWN:' + strI2S(Ord(B));
|
Result := 'UNKNOWN';
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
Result := Result + ' Ord:' + strI2S(Ord(B));
|
||||||
End;
|
End;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
@ -197,7 +199,7 @@ Begin
|
||||||
|
|
||||||
Status.Protocol := 'Zmodem';
|
Status.Protocol := 'Zmodem';
|
||||||
LastSent := 0;
|
LastSent := 0;
|
||||||
EscapeAll := True;
|
EscapeAll := False;
|
||||||
Attn := '';
|
Attn := '';
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
@ -318,7 +320,7 @@ Begin
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
{$IFDEF ZCHARLOG} ZLog('ZDLRead -> ' + strI2S(Result)); {$ENDIF}
|
{$IFDEF ZCHARLOG} ZLog('ZDLRead -> ' + HeaderType(Result)); {$ENDIF}
|
||||||
End;
|
End;
|
||||||
|
|
||||||
(*
|
(*
|
||||||
|
@ -462,6 +464,45 @@ Begin
|
||||||
ZReceiveBinaryHeader32 := RxType;
|
ZReceiveBinaryHeader32 := RxType;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
(*
|
||||||
|
//XON, XOFF, DLE, CTRLX, CR@CR...
|
||||||
|
//ALSO translate TELNET_IAC... optional?
|
||||||
|
Procedure TProtocolZmodem.SendEscaped (B: SmallInt);
|
||||||
|
Begin
|
||||||
|
Case B of
|
||||||
|
DLE,
|
||||||
|
DLEHI,
|
||||||
|
XON,
|
||||||
|
XONHI,
|
||||||
|
XOFF,
|
||||||
|
XOFFHI,
|
||||||
|
ZDLE : Begin
|
||||||
|
Client.BufWriteChar(Char(ZDLE));
|
||||||
|
LastSent := B XOR $40;
|
||||||
|
End;
|
||||||
|
13,
|
||||||
|
13 OR $80 : If (LastSent AND $7F = Ord('@')) Then Begin
|
||||||
|
Client.BufWriteChar(Char(ZDLE));
|
||||||
|
LastSent := B XOR $40;
|
||||||
|
End Else
|
||||||
|
LastSent := B;
|
||||||
|
255 : Begin
|
||||||
|
Client.BufWriteChar(Char(ZDLE));
|
||||||
|
LastSent := ZRUB1;
|
||||||
|
End;
|
||||||
|
|
||||||
|
Else
|
||||||
|
If (EscapeAll) and ((B AND $60) = 0) Then Begin
|
||||||
|
Client.BufWriteChar(Char(ZDLE));
|
||||||
|
LastSent := B XOR $40;
|
||||||
|
End Else
|
||||||
|
LastSent := B;
|
||||||
|
End;
|
||||||
|
|
||||||
|
Client.BufWriteChar(Char(LastSent));
|
||||||
|
End;
|
||||||
|
*)
|
||||||
|
|
||||||
Procedure TProtocolZmodem.SendEscaped (B: SmallInt);
|
Procedure TProtocolZmodem.SendEscaped (B: SmallInt);
|
||||||
Begin
|
Begin
|
||||||
Case B of
|
Case B of
|
||||||
|
|
Loading…
Reference in New Issue