Changeset 247 for PinConnection
- Timestamp:
- May 24, 2011, 12:36:12 PM (14 years ago)
- Location:
- PinConnection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/UCommPin.pas
r119 r247 51 51 procedure TCommPin.Connect(Pin: TCommPin); 52 52 begin 53 if Assigned(Pin) then Disconnect; 54 Self.RemotePin := Pin; 55 Pin.RemotePin := Self; 53 if Pin <> RemotePin then begin 54 Pin.Disconnect; 55 Disconnect; 56 Self.RemotePin := Pin; 57 Pin.RemotePin := Self; 58 end; 56 59 end; 57 60 -
PinConnection/UCommProtocol.pas
r231 r247 101 101 ResponseParameters: TVarBlockIndexed = nil; 102 102 RequestParameters: TVarBlockIndexed = nil; ARaiseError: boolean = True); 103 constructor Create; 103 constructor Create; virtual; 104 104 destructor Destroy; override; 105 procedure Assign(Source: TCommProtocol); virtual; 105 106 property OnAfterRequest: TAfterRequest read FOnAfterRequest write FOnAfterRequest; 106 107 property OnCommand: TAfterRequest read FOnCommand write FOnCommand; … … 360 361 end; 361 362 363 procedure TCommProtocol.Assign(Source: TCommProtocol); 364 begin 365 LastCommandResponseTime := Source.LastCommandResponseTime; 366 LastLatency := Source.LastLatency; 367 MaxSequenceNumber := Source.MaxSequenceNumber; 368 MaxSessionCount := Source.MaxSessionCount; 369 RemoteBufferSize := Source.RemoteBufferSize; 370 RemoteBufferUsed := Source.RemoteBufferUsed; 371 WrongSequenceCount := Source.WrongSequenceCount; 372 RetransmitTimeout := Source.RetransmitTimeout; 373 RetransmitRepeatCount := Source.RetransmitRepeatCount; 374 RetransmitTotalCount := Source.RetransmitTotalCount; 375 Pin.Connect(Source.Pin.RemotePin); 376 OnCommand := Source.OnCommand; 377 OnAfterRequest := Source.OnAfterRequest; 378 OnDebugLog := Source.OnDebugLog; 379 Active := Source.Active; 380 end; 381 362 382 { TDeviceProtocolSession } 363 383
Note:
See TracChangeset
for help on using the changeset viewer.