Re: [twsocket] FTPCLI - how to query/change FTP send buffer size?

2005-12-12 Thread Udvari András László
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


Re: [twsocket] FTPCLI - how to query/change FTP send buffer size?

2005-12-12 Thread Francois Piette
 1. Is there any difference if I do these changes in TCustomWinSocket.Connect 
 or in
TCustomWinSocket.Dup?

Yes of course. Dup is used at server side, when a new client connection has 
been accepted.
Connect is used at client side, when a connection to a server is requested.

 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?

It is normal behaviour. SO_SNDBUF is a per socket value. You have to set the 
value each time the
socket is opened.

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be



- Original Message - 
From: Udvari András László [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, December 12, 2005 11:02 AM
Subject: Re: [twsocket] FTPCLI - how to query/change FTP send buffer size?


 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

-- 
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


Re: [twsocket] FTPCLI - how to query/change FTP send buffer size?

2005-12-07 Thread Udvari András László
Thanks for your reply. And how can I query the current settings? At the first 
stage our test I need only the current value. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois Piette
Sent: Wednesday, December 07, 2005 4:06 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

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


- Original Message - 
From: Udvari András László [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, December 07, 2005 2:36 PM
Subject: [twsocket] FTPCLI - how to query/change FTP send buffer size?


 Hi!

 If I use the ICS FTPCLI component, how can I query/set the size of the FTP 
 send buffer? I mean the
SO_SNDBUF parameter, required by our test method, to simulate certain test 
cases in wireless
environment.

 Thanks:
 Andras
 -- 
 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
-- 
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


Re: [twsocket] FTPCLI - how to query/change FTP send buffer size?

2005-12-07 Thread Francois Piette
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

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


- Original Message - 
From: Udvari András László [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, December 07, 2005 2:36 PM
Subject: [twsocket] FTPCLI - how to query/change FTP send buffer size?


 Hi!

 If I use the ICS FTPCLI component, how can I query/set the size of the FTP 
 send buffer? I mean the
SO_SNDBUF parameter, required by our test method, to simulate certain test 
cases in wireless
environment.

 Thanks:
 Andras
 -- 
 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