Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using FTP to pick up files from Unix server
Message
De
03/05/2001 12:24:01
Phillip Perkins
Technology Consulting, Inc.
Louisville, Kentucky, États-Unis
 
 
À
03/05/2001 12:09:57
Mark Evans
Business Systems Services (Uk) Limited
Swansea, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00502473
Message ID:
00503109
Vues:
25
I'm not certain here, but I think that if you're doing this on the StateChanged event where the state = 12, you're going to need more than 1024 in some instances. I went out on a limb and tried 20480 (I believed that I read somewhere that even if you specify more than what's actually in the buffer, it will only return what's in the buffer). I didn't get any problems with that, and I didn't even specify the second parameter. When the state = 12 (response complete), that means that it is done with everything. When the state = 8 (response received), that means that it has just received some data. The way that most internet transfers work is that they are limited to 1024 bytes for each transfer, and they transfer all the data until they reach the total number of bytes for the total transfer (usu. specified in the header). The ITC cannot transfer type ASCII. All its transfers are limited to binary transfers only. So this could present some problems when dealing with ASCII text files or such, so it really doesn't make sense that they have the two different GetChunk methods (0 and 1). I say, just leave it out.

Hope this makes some sense.

Phillip

>I'm using "Object.GetChunk(1024,0)"
>
>Mark.
"D'OH!" --Homer Simpson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform