2012-08-08 21:40:10 -07:00
|
|
|
Unit m_Protocol_XModem;
|
|
|
|
|
|
|
|
{$I M_OPS.PAS}
|
|
|
|
|
|
|
|
Interface
|
|
|
|
|
|
|
|
Uses
|
2012-08-11 09:50:14 -07:00
|
|
|
m_Socket_Class,
|
|
|
|
m_Protocol_Base,
|
|
|
|
m_Protocol_Queue;
|
2012-08-08 21:40:10 -07:00
|
|
|
|
|
|
|
Type
|
|
|
|
TProtocolXmodem = Class(TProtocolBase)
|
2012-08-11 09:50:14 -07:00
|
|
|
DoCRC : Boolean;
|
|
|
|
Do1K : Boolean;
|
|
|
|
|
|
|
|
Constructor Create (Var C: TSocketClass; Var Q: TProtocolQueue); Override;
|
|
|
|
Destructor Destroy; Override;
|
2012-08-08 21:40:10 -07:00
|
|
|
End;
|
|
|
|
|
|
|
|
Implementation
|
|
|
|
|
2012-08-11 09:50:14 -07:00
|
|
|
Constructor TProtocolXmodem.Create (Var C: TSocketClass; Var Q: TProtocolQueue);
|
|
|
|
Begin
|
|
|
|
Inherited Create(C, Q);
|
|
|
|
|
|
|
|
DoCRC := True;
|
|
|
|
Do1K := True;
|
|
|
|
End;
|
|
|
|
|
|
|
|
Destructor TProtocolXmodem.Destroy;
|
|
|
|
Begin
|
|
|
|
Inherited Destroy;
|
|
|
|
End;
|
|
|
|
|
|
|
|
End.
|