Autor Beitrag
sky21
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 141

W7
D2010, XE2
BeitragVerfasst: Di 04.09.07 08:30 
Hallo Community

Mir ist nicht ganz klar, welche Auswirkung bzw. welcher Unterschied zwischen Disconnect() und Quit() besteht.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
 // sort of quick pseudo code [v1]
 Fftp : TIdFTP;

 Fftp.Connect(FHost);
 Fftp.Put(FFile);
 Fftp.Disconnect();


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
 // sort of quick pseudo code [v2]

 Fftp : TIdFTP;

 Fftp.Connect(FHost);
 Fftp.Put(FFile);
 Fftp.Quit(); // macht anschliessend selber ein disconnect


Ich würde jetzt mal sagen, dass Quit() eher das geordnete und reguläre abmelden beim Server ist... und bei einem Disconnect ohne vorhergehendes Quit eher ein Abwürgen der Verbindung ist... was meint ihr?

Danke für die Hilfe
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 04.09.07 08:58 
Moin!

Jup, so ist das. Quit: Auf wiedersehen sagen und nett sein, Disconnect: auflegen und unhöflich sein. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
sky21 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 141

W7
D2010, XE2
BeitragVerfasst: Di 04.09.07 09:52 
user profile iconNarses hat folgendes geschrieben:
Moin!

Jup, so ist das. Quit: Auf wiedersehen sagen und nett sein, Disconnect: auflegen und unhöflich sein. ;)

cu
Narses


Na und was ist die Konsequenz, wenn man einfach abbricht (=Disconnect)?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 04.09.07 10:19 
Moin!

Quit: geordneter Verbindungsabbau, beide Seiten wissen bescheid
Disconnect: Verbindungsabbruch, ist nicht von einer externen Unterbrechung zu unterscheiden

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.