Topic Path: Symbol Reference > Classes > TIdIOHandlerSocket Class > TIdIOHandlerSocket Properties > OnSocketAllocated Property
TIdIOHandlerSocket.OnSocketAllocated Property

Event handler property signalled when the socket handle has been allocated in the Binding for the IOHandler.

property OnSocketAllocated: TIdNotifyEvent;

OnSocketAllocated is a TNotifyEvent event handler property signalled when the socket handle in the Binding for the IOHandler has been allocated. 

OnSocketAllocated is triggered in the ConnectClient method after the OnBeforeBind event handler has been triggered and following assignment of IPVersion to the corresponding property in Binding

OnSocketAllocated is triggered before assigment of values for the IP and Port number for the Binding using BoundIP, BoundPortMin and BoundPortMax, and before calling the Bind method for the socket handle. 

Application must assign a procedure to the event handler to allow responding to the event notification.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.