Maurilio, Miguel,

<<<
> 1. Indeed we should not ASSUME any size, we should either:
>
>       - Find if there's a way to QUERY, what's the O/S buffer size.
>
yes, there is, it is getsockopt(), which can tell you how big are OS  
default
buffers.
 >>>

Miguel, please correct core implementation to use default O/S buffer  
size, as reported by getsocketopt(), instead of the older hardcoded  
1400 bytes, or new 64KB. Then add to TFTP:

    #define FTP_SEND_BLOCKSIZE ...
    #define FTP_RCV_BLOCKSIZE ...
    ...
    InetSetSndBufSize( pSocket, FTP_SEND_BLOCKSIZE )
    InetSetRcvBufSize( pSocket, FTP_RCV_BLOCKSIZE )

Ron



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to