System.Win.ScktComp.TCustomWinSocket.Event

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure Event(Socket: TCustomWinSocket; SocketEvent: TSocketEvent); dynamic;

C++

DYNAMIC void __fastcall Event(TCustomWinSocket* Socket, TSocketEvent SocketEvent);

Propriétés

Type Visibilité  Source Unité  Parent
procedure
function
protected
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomWinSocket

Description

Déclenche un événement OnSocketEvent.

La méthode Event est automatiquement appelée lorsque l'objet socket Windows reçoit des notifications ou lorsqu'il effectue certaines actions. Elle génère l'événement OnSocketEvent. En redéfinissant cette méthode, vérifiez que vous appelez la méthode héritée, car les composants socket comptent sur l'événement OnSocketEvent pour générer beaucoup de leurs propres événements. Le paramètre Socket désigne l'objet socket Windows qui génère ou reçoit la notification de l'événement. Le paramètre SocketEvent indique l'événement qui a eu lieu.

Voir aussi