Autor Beitrag
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Do 24.06.04 21:23 
Hi,
erstmal ein bisschen Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  
if not Assigned(IdFTP.Socket) then ShowMessage('Warum?');
with IdFTP.Socket.SocksInfo do // <= Zugriffsverletung
begin
  Host:='192.168.0.5';
  Version:=svSocks5;
  Authentication:=saUsernamePassword;
end;
Dieser Code soll einem idFTP.Socket etwas zuweisen. Leider existiert dieser Socket noch nicht. Wie kann ich ihn erstellen? Ich hoffe man kann meiner Fragestellung folgen :roll:

Danke schon mal,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Do 24.06.04 21:28 
Also ich weiss nicht ob ich deine Frage verstanden habe, aber bei mir gibts idftp.socket garnicht. nur idftp.socksinfo!
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Do 24.06.04 21:33 
Dann benutzt du noch eine relativ alte Version der Indys. Früher ging das noch alles viel einfacher :?

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mo 28.06.04 18:15 
Die Lösung ist simpel: Man erstellt ein TidIOSocketHandler und ein TidSocksInfo. Das SocksInfo wird im SocketHandler eingetragen (Objektinspektor) und der SocketHandler im TidTCPClient. Dann kann man alle nötigen Einstellungen im TidSocksInfo einstellen.

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.