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: Fr 23.12.05 19:28 
Hallo
eine Kleine Frage, bei der ich nicht weiterkomm. Ich würde gerne im oben genannten Ereignis zu Log-Zwecken rausfinden, welcher Client dieses Ereignis auslösen lies. Konkret bedeutet das, mich würde interessieren, wie ich die IP von ihm bekomme, oder auch der Rechnername würde langen.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 23.12.05 19:49 
Schau Dir mal die Eigenschaften des dem Ereignis übergegebenen Parameters an (bei Indy 10 ist das AContext). Dort gibt es eine Eigenschaft Connection und Binding. In einem von beiden findest Du die IP des Gegenübers. Bin mir aber nicht sicher in welchem, weil ich die bisher nicht gebraucht habe ;-)
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: Fr 23.12.05 19:58 
Oh sorry, hab vergessen zu sagen, dass ich Indy 9 benutze. Dort gibt es nur AThread: TIdPeerThread.
Und dort hab ich halt nix was für ne IP herhält gefunden...

_________________
Programmers never die, they just GOSUB without RETURN
BattleFrog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

WIN 2000
Delphi 7 Ent.
BeitragVerfasst: Mi 18.01.06 16:34 
AThread.Connection.Socket.Binding.PeerIP