It has more than 6 months running OK over windows platform.
Increasing more than 50% speed. Now we are using half default system buffer 
size.

We only use the half for security. at windows platforms this buffer is 8kb or 
lower
then we use 4kb instead of 1kb. Some times when low memory system, the default 
can
be lower than 1kb, then the old code simply crashes (GPF).

The default transfer buffer is stablished to 64kb to increase speed, in the 
same way as work
CuteFTP and other's.

I can't test it over linux.

Best regards,
Miguel Angel Marchuet

Lorenzo Fiorini escribió:
After

2008-06-27 17:13 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>
  * contrib/hbtip/client.prg
  * contrib/hbtip/ftpcln.prg
  * contrib/hbtip/httpcln.prg
  * contrib/hbtip/mail.prg
  * contrib/hbtip/sendmail.prg
    + Added methods setget to interrogate buffer size send/recive
           METHOD InetRcvBufSize( SocketCon, nSizeBuff )
           METHOD InetSndBufSize( SocketCon, nSizeBuff )
    + Added data members to assign default buffer sizes
           DATA nDefaultRcvBuffSize
           DATA nDefaultSndBuffSize
    + Asigned default buffer size to 64kb only for FTP transfer,
previous to open sockets
           ::nDefaultSndBuffSize := 65536
           ::nDefaultRcvBuffSize := 65536
    * Fixed port ftp protocol.
  * source/rtl/hbinet.c
    * now works with default system buffer, for example 8kb at W2000.
instead of harcoded 1400

I get:

../../hbinet.c: In function 'hb_socketConnect':
../../hbinet.c:475: error: 'SOCKET_ERROR' undeclared (first use in
this function)
../../hbinet.c:475: error: (Each undeclared identifier is reported only once
../../hbinet.c:475: error: for each function it appears in.)

Changes in inet* core functions should be done carefully and well tested.
There are many smtp,pop,ftp,* servers outside.
How many tests have been done on server/client platforms beside W2000.

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to