Registriert seit: 30. Nov 2005
Ort: München
5.771 Beiträge
Delphi 10.4 Sydney
|
Re: WinSock Error Anwendungsweit abfangen
7. Sep 2006, 10:43
Aus der Hilfe:
Zitat:
Unit
ScktComp
type
TErrorEvent = (eeGeneral, eeSend, eeReceive, eeConnect, eeDisconnect, eeAccept);
TSocketErrorEvent = procedure (Sender: TObject; Socket: TCustomWinSocket; ErrorEvent: TErrorEvent; var ErrorCode: Integer) of object;
Description
The Sender parameter is the socket component that encountered the error.
The Socket parameter is the TCustomWinSocket object that receives the error notification.
The ErrorCode parameter is the error code returned by the Windows socket API call. Changing this to 0 within an error handler prevents an exception from being raised.
The ErrorEvent parameter indicates what Socket was attempting to do when the error occurred. It is of type TErrorEvent, which can have any of the following values:
Vielleicht hilft es.
Grüße
Klaus
Klaus
|
|
Zitat
|