Autor Beitrag
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 14.01.06 13:59 
Hi
Vorweg, ich beziehe mich auf Indy 9, wobei das bei Indy 10 gleich sein sollte.
Ich hab mal ein wenig in der Suche rumgestöbert und folgendes gefunden:
www.delphi-library.d...r=asc&highlight=

Es geht mir darum, dass ich gerne die Indy-Exceptions nicht nach ihrem Message-Text, sondern nach deren Fehlernummer unterscheiden will, was ja mit EIdSocketException.LastError übergeben wird. Nur: woher weiß ich, welche Nummer zu was genhört?

Der Link oben verweist auf Fehlernummern der TClientSocket und TServerSocket Komponenten. Also: gelten diese auch bei indy?
Und wenn ja, dann ist diese Liste nicht komplett, es fehlen dan nämlich nummern wie 10065. Woher kann man eine Vollständige Liste beziehen.
In der Indy Hilfe hab ich auch nichts gefunden...

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 14.01.06 14:21 
Moin!

Das sieht doch schwer nach den WSA-Fehlern aus. Schau mal im MSDN, da gibts ne Fehlerliste.

cu
Narses
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 14.01.06 14:30 
WSA = WinSocket...?
Aber ich schau mal

_________________
Programmers never die, they just GOSUB without RETURN
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 14.01.06 14:35 
Moin!

Yip, Windows-Socket-API. :wink:

Nochmal gerade nachgesehen, in der win32api\JwaWinsock2.pas stehen die auch drin, hier, dein Beispiel:
ausblenden Quelltext
1:
WSAEHOSTUNREACH    = (WSABASEERR+65);					

cu
Narses
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 14.01.06 14:39 
Ja ich hab jetzt in der PSDK gesucht (hatte ich total vergessen, das ich die ja hab) und da iss alles aufgelistet.

Für den, den es interessiert, man suche dort nach WSAGetLastError und dann ist im Dokument ein Link auf die Error codes.

Gruß alias5000 und danke an Narses!

_________________
Programmers never die, they just GOSUB without RETURN