Hi Francois,

Using your directions I succeeded to query and change the SO_SNDBUF. I chose 
the TCustomWinSocket.Dup procedure to do the following:
1. Query the SO_SNDBUF (result was 8192)
2. Set the SO_SNDBUF to 16384
3. Query once again (and yes, the result was now 16384 :))

Two questions remain: 
1. Is there any difference if I do these changes in TCustomWinSocket.Connect or 
in TCustomWinSocket.Dup?
2. When I set the new SO_SNDBUF value before an upload to 16384, after 
finishing this upload, and beginning a new one, the value was once again 8192. 
Is it a normal behaviour that I have to set the send buffer size explicitly 
before every upload?

Thanks for your help:
Andras Udvari



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois PIETTE
Sent: Wednesday, December 07, 2005 8:16 PM
To: ICS support mailing
Subject: Re: [twsocket] FTPCLI - how to query/change FTP send buffer size?

>> Not easy. You must change the component and call WSocket_setsockopt
>> with the correct parameters at the right place ! The right place is in
>> TCustomWSocket.Connect and TCustomWSocket.Dup

> Thanks for your reply. And how can I query the current settings?
> At the first stage our test I need only the current value.

Just have a look at the source code where I told you to insert code and 
you'll quickly understand.


--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to