RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ScktComp.TSocketNotifyEvent Type

The type for event handlers which respond to events during the expected course of forming or using a socket connection.

Pascal
TSocketNotifyEvent = procedure (Sender: TObject; Socket: TCustomWinSocket) of object;
C++
(Sender: TObject; Socket: TCustomWinSocket) ( TSocketNotifyEvent)();

ScktComp

The Sender parameter is the socket component or Windows socket object to which the event occurred. 

The Socket parameter is the TCustomWinSocket object that represents the endpoint of the connection. 

When the event handler belongs to a client Windows socket object, these two parameters are the same. For server Windows socket objects, the Sender parameter represents the listening connection while the Socket parameter represents a client connection. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!