Ignore:
Timestamp:
Aug 20, 2012, 2:45:39 PM (12 years ago)
Author:
chronos
Message:
  • Added: TDeviceConnector in PinConnection package for generalized routing serial data to various TCommNode objects.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommTCPClient.pas

    r413 r416  
    3535    procedure ReceiveData(Sender: TCommPin; Stream: TListByte);
    3636    procedure SetActive(const AValue: Boolean);
     37  protected
     38    procedure AssignTo(Dest: TPersistent); override;
    3739  public
    3840    Socket: TTCPBlockSocket;
     
    9193    FreeAndNil(FReceiveThread);
    9294  end;
     95end;
     96
     97procedure TCommTCPClient.AssignTo(Dest: TPersistent);
     98begin
     99  if Dest is TCommTCPClient then begin
     100    TCommTCPClient(Dest).Address := Address;
     101    TCommTCPClient(Dest).Port := Port;
     102  end
     103  else inherited;
    93104end;
    94105
Note: See TracChangeset for help on using the changeset viewer.