Browse Source

* Allow to read handler

Michaël Van Canneyt 4 years ago
parent
commit
87e9958429
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-net/src/ssockets.pp

+ 2 - 0
packages/fcl-net/src/ssockets.pp

@@ -100,6 +100,7 @@ type
     function GetLocalAddress: TSockAddr;
     function GetLocalAddress: TSockAddr;
     function GetRemoteAddress: TSockAddr;
     function GetRemoteAddress: TSockAddr;
     procedure SetIOTimeout(AValue: Integer);
     procedure SetIOTimeout(AValue: Integer);
+  Protected
   Public
   Public
     Constructor Create (AHandle : Longint; AHandler : TSocketHandler = Nil);virtual;
     Constructor Create (AHandle : Longint; AHandler : TSocketHandler = Nil);virtual;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -118,6 +119,7 @@ type
     Property WriteFlags : Integer Read FWriteFlags Write FWriteFlags;
     Property WriteFlags : Integer Read FWriteFlags Write FWriteFlags;
     Property IOTimeout : Integer read FIOTimeout Write SetIOTimeout;
     Property IOTimeout : Integer read FIOTimeout Write SetIOTimeout;
     Property ConnectTimeout : Integer read FConnectTimeout Write SetConnectTimeout;
     Property ConnectTimeout : Integer read FConnectTimeout Write SetConnectTimeout;
+    Property Handler : TSocketHandler Read FHandler;
   end;
   end;
 
 
   TConnectEvent = Procedure (Sender : TObject; Data : TSocketStream) Of Object;
   TConnectEvent = Procedure (Sender : TObject; Data : TSocketStream) Of Object;