[fpc-pascal] download manager

2012-12-23 Thread Geoffray Levasseur-Brandin
Hello everybody, I'm currently trying to create a download manager with Synapse for an application I'm creating. As the application may need to download many big files from either ftp or http servers (it's a Linux package manager and a graphical installer for a distribution I'm creating with fr

[fpc-pascal] SocketError 183

2012-12-23 Thread MegaBrutal
Hi all, For some reason, when I read socketerror after calling fpRecv just after I established a connection, I get 183, or (on a very rare occasion) 10061. I couldn't find what 183 is supposed to mean, but 10061 is "connection refused", which is strange because it's not applicable to the situation

Re: [fpc-pascal] SocketError 183

2012-12-23 Thread Marco van de Voort
In our previous episode, MegaBrutal said: > > fpRecv works correctly if I read after I written something first. > > I suspect 2 possible causes: > - Is socketerror reset to 0 after a successful socket operation? Actually, > I call fpRecv and then try to verify if it was successful by examining >

Re: [fpc-pascal] download manager

2012-12-23 Thread Lukas Gebauer
> With HTTP my problem is that I can't find the way to get the size of the > file on the server while HTTPSend.DownloadSize is giving me the size of > what have been downloaded. HTTP have a few ways how to download data. But not all ways know size of data. For example, in chunked way you know siz

Re: [fpc-pascal] SocketError 183

2012-12-23 Thread Ewald
Once upon a time, on 12/23/2012 02:36 PM to be precise, MegaBrutal said: > Hi all, > > For some reason, when I read socketerror after calling fpRecv just > after I established a connection, I get 183, or (on a very rare > occasion) 10061. I couldn't find what 183 is supposed to mean, but > 10061 is

[fpc-pascal] Re: GetTableNames in TSQLConnection / Postgresql

2012-12-23 Thread Reinier Olislagers
On 21-12-2012 12:37, Tomas Hajny wrote: > On Fri, December 21, 2012 11:59, Reinier Olislagers wrote: >> On 18-12-2012 10:49, Tomas Hajny wrote: >>> On Tue, December 18, 2012 09:35, >>> michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org >>> wrote: On Tue, 18 Dec 2012, Joh

[fpc-pascal] Re: Strings - suggestions

2012-12-23 Thread Reinier Olislagers
On 22-12-2012 12:55, Michael Van Canneyt wrote: > On Sat, 22 Dec 2012, dev.dliw-re5jqeeqqe8avxtiumw...@public.gmane.org > wrote: > >> Hi, >> concerning the string topic, for me (using fpc since 2.0.4 on a >> regular basis; >> TP experience ~ average user) there really should be an decision what