Ignore:
Timestamp:
Aug 16, 2012, 12:59:53 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Classes using TCommPin class now inherits from TCommNode which inherits from TComponent. All TCommNodes are now registred as components in PinConnection group on component palette.
  • Modified: TCommPin now have reference to parent TCommNode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommTCPServer.pas

    r407 r413  
    4343  { TCommTCPServer }
    4444
    45   TCommTCPServer = class
     45  TCommTCPServer = class(TCommNode)
    4646  private
    4747    FActive: Boolean;
     
    5959    property OnConnect: TSocketConnectEvent read FOnConnect write FOnConnect;
    6060    property OnDisconnect: TSocketConnectEvent read FOnDisconnect write FOnDisconnect;
    61     constructor Create;
     61    constructor Create(AOwner: TComponent); override;
    6262    destructor Destroy; override;
    6363  end;
     
    8585  Pin := TCommPin.Create;
    8686  Pin.OnReceive := ReceiveData;
     87  Pin.Node := Server;
    8788end;
    8889
     
    187188end;
    188189
    189 constructor TCommTCPServer.Create;
    190 begin
    191   inherited Create;
     190constructor TCommTCPServer.Create(AOwner: TComponent);
     191begin
     192  inherited;
    192193  Sessions := TListObject.Create;
    193194  Socket := TTCPBlockSocket.Create;
Note: See TracChangeset for help on using the changeset viewer.