Re: [twsocket] Built-in timeout questions

2011-02-07 Thread Anton S.
Thanks Arno, I followed your advices and successfully solved both issues.
Regarding timer I'll try ThreadTimer as I don't need precise resolution here

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


Re: [twsocket] Error with SSLWSocketClient

2011-02-07 Thread daniel cc

Hi Arno,
Thanks for your precise comments.
The security issue in my case is not very high because this is just a server 
client communication with nothing sensetive (no money transfer or credit 
cards or personal info etc.)
I will use a commercial Certificate of 3 years valid and hoping that it will 
work.


However,
I still can't find the reason why I have got that error.
Are you saying that there is security leak in ICS?
if yes,
do we have any solutions for it?

thanks

-Original Message- 
From: Arno Garrels

Sent: Sunday, February 06, 2011 10:34 PM
To: ICS support mailing
Subject: Re: [twsocket] Error with SSLWSocketClient

Arno Garrels wrote:


With OpenSSL it's easy to generate a CRL and to include its weblink
in self created certificates. If you will use commercial SSL server
certificates you do not have to worry about CRLs.


Well that's true, however currently ICS lacks the CRL-feature. It does 
neither
include local  CRLs in the certificate verification process nor follow 
external
CRL-links in certificates. This is a security leak, however not  just in 
ICS. I'm

not aware of any Delphi SSL-Component suite that handles CRLs correctly,
one should know that if high security matters.

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


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


Re: [twsocket] Error with SSLWSocketClient

2011-02-07 Thread Fastream Technologies
On Sun, Feb 6, 2011 at 10:34 PM, Arno Garrels arno.garr...@gmx.de wrote:

 ...
 Obviously, security isn't your special subject.

I think I have learned a lot about SSL via the OpenSSL book and this list
while developing. As you may remember we were the company who suggested to
start the ICS-SSL project back in 2002. The lack of CRLs in ICS should be
the reason why I got confused while replying to Daniel.

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


Re: [twsocket] ICS and XE Starter Editions

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
 I wonder if anybody already managed to install and run ICS in the 
 new Delphi/C++ Builder XE Starter Editions yet? Any problems?

Difficult to test, since XE Starter can not be installed if another
edition is already there, so it needs a new VM, which takes time.  

According to the newsgroups, the main issue with Starter Edition is the
lack of the command line compiler, which many large packages like JVCL
use for installation to avoid distributing numerous different prebuilt
packages for different Delphi versions.  

ICS does not include any prebuilt packages, and does not need the command
line compiler, so there should be no install issues.  

Angus

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


Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
 It's a great news for me !

 Bandwidth throttling is now implemented in the HTTP Client and 
 Server

Just be aware the absolute bandwidth speeds may be 20% different from my
various testing. I was testing at 1 and 5 megs, and got 0.8 and 4.7 meg
speeds, but still much better than the 50 to 100 megs testing on a LAN
can manage, at least you can see the progress happening.  Getting
bandwidth more accurate would need more resources.  

Angus

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


Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Fastream Technologies
In our tests, I have witnessed that making throttling code 99+% precise in
async sockets is very difficult (or impossible). It needs a Sleep() call to
do that which in turn requires a thread per socket.

Regards,

SZ
On Mon, Feb 7, 2011 at 11:55 AM, Angus Robertson - Magenta Systems Ltd 
an...@magsys.co.uk wrote:

  It's a great news for me !

  Bandwidth throttling is now implemented in the HTTP Client and
  Server

 Just be aware the absolute bandwidth speeds may be 20% different from my
 various testing. I was testing at 1 and 5 megs, and got 0.8 and 4.7 meg
 speeds, but still much better than the 50 to 100 megs testing on a LAN
 can manage, at least you can see the progress happening.  Getting
 bandwidth more accurate would need more resources.

 Angus

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

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


[twsocket] Transparent HTTP proxy-support TWSocket

2011-02-07 Thread Arno Garrels
Hi All!,

I added transparent HTTP 1.1 proxy-support to TWSocket at the weekend
including Basic and NTLM authentication, it's not committed yet.
Well, tested only with a 30 days trial version of WinGate that
understands HTTP 1.1.
I wonder whether HTTP 1.0 proxy-support is still required?
What do you think? Supporting HTTP 1.0 as well would make it
more complicated and error-prone, I like to keep it as simple
and small as possible. Are there still many HTTP 1.0 proxies 
in use?

-- 
Arno Garrels




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


[twsocket] TWSocket Buffer

2011-02-07 Thread rajesh gupta
Hi,
   I am using your ICS socket componet for c++ builder 6  .  I test lot but
TWSocket Component not sending the data more than 1460 bytes at a time .
  what is the maximum size how can use and how??. also how many max clients
it can handle in server mode . I have server 2003 with core to quad cpu.

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


Re: [twsocket] Transparent HTTP proxy-support TWSocket

2011-02-07 Thread Francois PIETTE

I added transparent HTTP 1.1 proxy-support to TWSocket at the weekend
including Basic and NTLM authentication, it's not committed yet.


That is a nice addition to ICS.


Well, tested only with a 30 days trial version of WinGate that
understands HTTP 1.1.
I wonder whether HTTP 1.0 proxy-support is still required?
What do you think? Supporting HTTP 1.0 as well would make it
more complicated and error-prone, I like to keep it as simple
and small as possible. Are there still many HTTP 1.0 proxies
in use?


I don't know, but I would agree to make HTTP 1.1 required to support the new 
feature, while not removing HTTP 1.0 from the HTTP component which could 
break existing code.


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Francois PIETTE

  I am using your ICS socket componet for c++ builder 6  .  I test lot but
TWSocket Component not sending the data more than 1460 bytes at a time .
 what is the maximum size how can use and how??.


I guess you are using UDP not TCP.
The maximum size of a UDP datagram TWsoc²ket can send is defined by the 
internal buffer size which default to 1460 (The max size of a normal 
Ethernet packet on a LAN). You can change that buffer size using BufSize 
property.



also how many max clients
it can handle in server mode . I have server 2003 with core to quad cpu.


The most limiting number of concurrent sockets is memory, not processor. 
This has been asked frequently. Go to the mailist list archive and search 
for those discussion (Archives accessible from support link at 
www.overbyte.be).


You need ICS-V7 to support a really large number of concurrent sockets 
(Thousands of sockets).


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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


Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Bruno Mannina

Is the Zip file is available on the website ?
I can't find it, it always shows *[* Download ICS-V7 Distribution 
(October, 2010) *]*


Regards,
Bruno


Le 07/02/2011 11:17, Fastream Technologies a écrit :

In our tests, I have witnessed that making throttling code 99+% precise in
async sockets is very difficult (or impossible). It needs a Sleep() call to
do that which in turn requires a thread per socket.

Regards,

SZ
On Mon, Feb 7, 2011 at 11:55 AM, Angus Robertson - Magenta Systems Ltd
an...@magsys.co.uk  wrote:


It's a great news for me !

Bandwidth throttling is now implemented in the HTTP Client and
Server

Just be aware the absolute bandwidth speeds may be 20% different from my
various testing. I was testing at 1 and 5 megs, and got 0.8 and 4.7 meg
speeds, but still much better than the 50 to 100 megs testing on a LAN
can manage, at least you can see the progress happening.  Getting
bandwidth more accurate would need more resources.

Angus

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


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




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


Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
 Is the Zip file is available on the website ?
 I can't find it, it always shows *[* Download ICS-V7 Distribution 
 (October, 2010) *]*

It's on the Wiki website:

http://wiki.overbyte.be/wiki/index.php/ICS_Download

SVN is zipped at about 11.05pm each night as:

http://wiki.overbyte.be/arch/icsv7w.zip

Angus




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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread rajesh gupta
I guess you are using UDP not TCP.
   no I am using TCP
 I have 3gb ram
You need ICS-V7 to support
  I can not change the version please tell me in current version

Rajesh



On Mon, Feb 7, 2011 at 4:18 PM, Francois PIETTE
francois.pie...@skynet.bewrote:

   I am using your ICS socket componet for c++ builder 6  .  I test lot but
 TWSocket Component not sending the data more than 1460 bytes at a time .
  what is the maximum size how can use and how??.


 I guess you are using UDP not TCP.
 The maximum size of a UDP datagram TWsoc²ket can send is defined by the
 internal buffer size which default to 1460 (The max size of a normal
 Ethernet packet on a LAN). You can change that buffer size using BufSize
 property.


 also how many max clients
 it can handle in server mode . I have server 2003 with core to quad cpu.


 The most limiting number of concurrent sockets is memory, not processor.
 This has been asked frequently. Go to the mailist list archive and search
 for those discussion (Archives accessible from support link at
 www.overbyte.be).

 You need ICS-V7 to support a really large number of concurrent sockets
 (Thousands of sockets).

 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be

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

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Fastream Technologies
ICSv6 is the same as v7 in using single window per many sockets. For v5, you
may hit the limit for maximum number of Window handles per proxess with a
few thousand sockets.

With v7, we have been able to test up to 60k sockets. It could improve
further but as Francois said the 2GB RAM limit for 32-bit processes is the
problem. It will be removed when Embarcadero releases 64-bit compiler.
 Regards,

SZ
On Mon, Feb 7, 2011 at 1:13 PM, rajesh gupta rajeshgupta1...@gmail.comwrote:

 I guess you are using UDP not TCP.
   no I am using TCP
  I have 3gb ram
 You need ICS-V7 to support
  I can not change the version please tell me in current version

 Rajesh



 On Mon, Feb 7, 2011 at 4:18 PM, Francois PIETTE
 francois.pie...@skynet.bewrote:

I am using your ICS socket componet for c++ builder 6  .  I test lot
 but
  TWSocket Component not sending the data more than 1460 bytes at a time .
   what is the maximum size how can use and how??.
 
 
  I guess you are using UDP not TCP.
  The maximum size of a UDP datagram TWsoc²ket can send is defined by the
  internal buffer size which default to 1460 (The max size of a normal
  Ethernet packet on a LAN). You can change that buffer size using BufSize
  property.
 
 
  also how many max clients
  it can handle in server mode . I have server 2003 with core to quad cpu.
 
 
  The most limiting number of concurrent sockets is memory, not processor.
  This has been asked frequently. Go to the mailist list archive and search
  for those discussion (Archives accessible from support link at
  www.overbyte.be).
 
  You need ICS-V7 to support a really large number of concurrent sockets
  (Thousands of sockets).
 
  --
  francois.pie...@overbyte.be
  The author of the freeware multi-tier middleware MidWare
  The author of the freeware Internet Component Suite (ICS)
  http://www.overbyte.be
 
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

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

Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Bruno Mannina

Ok thanks,

I can't find because I'm looking for on

http://www.overbyte.be

Regards,
Bruno

Le 07/02/2011 12:27, Angus Robertson - Magenta Systems Ltd a écrit :

Is the Zip file is available on the website ?
I can't find it, it always shows *[* Download ICS-V7 Distribution
(October, 2010) *]*

It's on the Wiki website:

http://wiki.overbyte.be/wiki/index.php/ICS_Download

SVN is zipped at about 11.05pm each night as:

http://wiki.overbyte.be/arch/icsv7w.zip

Angus




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




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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread rajesh gupta
Hi
  I have OverbyteIcsV5 just want to handle 1000 client. Is that possibe.
because i have to process 1000 client threads
Rajesh

On Mon, Feb 7, 2011 at 5:02 PM, Fastream Technologies ga...@fastream.comwrote:

 ICSv6 is the same as v7 in using single window per many sockets. For v5,
 you
 may hit the limit for maximum number of Window handles per proxess with a
 few thousand sockets.

 With v7, we have been able to test up to 60k sockets. It could improve
 further but as Francois said the 2GB RAM limit for 32-bit processes is the
 problem. It will be removed when Embarcadero releases 64-bit compiler.
  Regards,

 SZ
 On Mon, Feb 7, 2011 at 1:13 PM, rajesh gupta rajeshgupta1...@gmail.com
 wrote:

  I guess you are using UDP not TCP.
no I am using TCP
   I have 3gb ram
  You need ICS-V7 to support
   I can not change the version please tell me in current version
 
  Rajesh
 
 
 
  On Mon, Feb 7, 2011 at 4:18 PM, Francois PIETTE
  francois.pie...@skynet.bewrote:
 
 I am using your ICS socket componet for c++ builder 6  .  I test lot
  but
   TWSocket Component not sending the data more than 1460 bytes at a time
 .
what is the maximum size how can use and how??.
  
  
   I guess you are using UDP not TCP.
   The maximum size of a UDP datagram TWsoc²ket can send is defined by the
   internal buffer size which default to 1460 (The max size of a normal
   Ethernet packet on a LAN). You can change that buffer size using
 BufSize
   property.
  
  
   also how many max clients
   it can handle in server mode . I have server 2003 with core to quad
 cpu.
  
  
   The most limiting number of concurrent sockets is memory, not
 processor.
   This has been asked frequently. Go to the mailist list archive and
 search
   for those discussion (Archives accessible from support link at
   www.overbyte.be).
  
   You need ICS-V7 to support a really large number of concurrent sockets
   (Thousands of sockets).
  
   --
   francois.pie...@overbyte.be
   The author of the freeware multi-tier middleware MidWare
   The author of the freeware Internet Component Suite (ICS)
   http://www.overbyte.be
  
   --
   To unsubscribe or change your settings for TWSocket mailing list
   please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
   Visit our website at http://www.overbyte.be
  
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Fastream Technologies
If you have 1GB+ RAM, that should be possible.

Regards,

SZ
On Mon, Feb 7, 2011 at 1:58 PM, rajesh gupta rajeshgupta1...@gmail.comwrote:

 Hi
  I have OverbyteIcsV5 just want to handle 1000 client. Is that possibe.
 because i have to process 1000 client threads
 Rajesh

 On Mon, Feb 7, 2011 at 5:02 PM, Fastream Technologies ga...@fastream.com
 wrote:

  ICSv6 is the same as v7 in using single window per many sockets. For v5,
  you
  may hit the limit for maximum number of Window handles per proxess with a
  few thousand sockets.
 
  With v7, we have been able to test up to 60k sockets. It could improve
  further but as Francois said the 2GB RAM limit for 32-bit processes is
 the
  problem. It will be removed when Embarcadero releases 64-bit compiler.
   Regards,
 
  SZ
  On Mon, Feb 7, 2011 at 1:13 PM, rajesh gupta rajeshgupta1...@gmail.com
  wrote:
 
   I guess you are using UDP not TCP.
 no I am using TCP
I have 3gb ram
   You need ICS-V7 to support
I can not change the version please tell me in current version
  
   Rajesh
  
  
  
   On Mon, Feb 7, 2011 at 4:18 PM, Francois PIETTE
   francois.pie...@skynet.bewrote:
  
  I am using your ICS socket componet for c++ builder 6  .  I test
 lot
   but
TWSocket Component not sending the data more than 1460 bytes at a
 time
  .
 what is the maximum size how can use and how??.
   
   
I guess you are using UDP not TCP.
The maximum size of a UDP datagram TWsoc²ket can send is defined by
 the
internal buffer size which default to 1460 (The max size of a normal
Ethernet packet on a LAN). You can change that buffer size using
  BufSize
property.
   
   
also how many max clients
it can handle in server mode . I have server 2003 with core to quad
  cpu.
   
   
The most limiting number of concurrent sockets is memory, not
  processor.
This has been asked frequently. Go to the mailist list archive and
  search
for those discussion (Archives accessible from support link at
www.overbyte.be).
   
You need ICS-V7 to support a really large number of concurrent
 sockets
(Thousands of sockets).
   
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
   
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
   
   --
   To unsubscribe or change your settings for TWSocket mailing list
   please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
   Visit our website at http://www.overbyte.be
  
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

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

Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
 Ok Thanks for valuable info . Can you tell me is there any method 
 in ICS to compress the data and send to socket

Both the ICS FTP and HTTP server include options to compress data sent to
clients, but this is done at application layer, not socket layer.  

You would need to look at the source code and adapt it for your server,
it uses ZLIB.  Obviously you need to compress in a way that is compatible
with the client software. 

Beware compression is CPU intensive, and compressing 1,000 streams at the
same time will slow down your server significantly. 

Angus


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


Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Angus Robertson - Magenta Systems Ltd
 I can't find because I'm looking for on http://www.overbyte.be

The same zip links are on the main ICS product page, a few rows above the
red text version, but slightly less obvious.  

Beware the SVN repository can be updated daily, and rarely some bad code
ends up there for a couple of days, until someone else tests and reports
it for correction.  That is why the main distribution is generally
preferred, unless you really need new features. 

So if you do use the nightly zips, check the nightly V7 change log
regularly to ensure you still have the latest version. 

http://wiki.overbyte.be/arch/change-log-icsv7.xml

Angus

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Fastream Technologies
As I said you need to examine the web/FTP server component code. It is
possible.

SZ
On Mon, Feb 7, 2011 at 3:05 PM, rajesh gupta rajeshgupta1...@gmail.comwrote:

 Thanks
  I want to read buffer from files then compress after that send to
 client . Is that model possible

 Rajesh

 On Mon, Feb 7, 2011 at 6:07 PM, Angus Robertson - Magenta Systems Ltd 
 an...@magsys.co.uk wrote:

   Ok Thanks for valuable info . Can you tell me is there any method
   in ICS to compress the data and send to socket
 
  Both the ICS FTP and HTTP server include options to compress data sent to
  clients, but this is done at application layer, not socket layer.
 
  You would need to look at the source code and adapt it for your server,
  it uses ZLIB.  Obviously you need to compress in a way that is compatible
  with the client software.
 
  Beware compression is CPU intensive, and compressing 1,000 streams at the
  same time will slow down your server significantly.
 
  Angus
 
 
  --
  To unsubscribe or change your settings for TWSocket mailing list
  please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
  Visit our website at http://www.overbyte.be
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Francois PIETTE

 I want to read buffer from files then compress after that send to
client . Is that model possible


Sure it is.

As Angus said, compression is a CPU intensive task, so you'd better have 
multicore CPU and use multithreading to use multicore. If you have one 
thousand concurrent user doing compression, then you need a really, really 
large server. This is not bacause of ICS of course, just because of 
compression which is a CPU intensive task. Just to have an idea, let's have 
a batch file zipping a large file (so that it takes, let's say 30 on your 
computer). Then run a few hundreds simultaneous of your batches. You'll 
understand what I mean...


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Francois PIETTE
  I am using your ICS socket componet for c++ builder 6  .  I test lot 
but

TWSocket Component not sending the data more than 1460 bytes at a time .
 what is the maximum size how can use and how??.

I guess you are using UDP not TCP.

  no I am using TCP


There is no limit on the size of the data you can send at a time with 
TWSocket in a TCP session.
But if you are looking at the network using a sniffer, you'll see the 
maximum packet size of your Ethernet network (1460 bytes). This doesn't mean 
your applicatyion data will be transfered whatever the size is. This doesn't 
depends on ICS, this is how a socket is working and how an Ethernet and IP 
network is working. Don't worry about packet size !



I have 3gb ram


Not that much for a huge number of connections. Better use a 64 bit OS, even 
if your application is 32 bits (becaus eof Delphi generate 32 bit code 
cirrently).



You need ICS-V7 to support
 I can not change the version please tell me in current version


Current version is ICS-V7.
V6 to V7 is almost direct.
V5 to V7 require to change all unit names in the uses (not a big deal) and 
/may/ require some changes if you wrote components based on ICS components. 
Frequently, there is very little changes required.

You should REALLY use ICS-V7 which is current version.
Wait ! You still use C++ Builder 6 ? That may be an issue, I don't know.
You should upgrade to C++ Builder XE...

Regards,
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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


Re: [twsocket] HttpCli, bandWidthLimit ?

2011-02-07 Thread Bruno Mannina

Great ! It works perfectly for me inside my program 

thanks a lot for this improvement !

Regards,
Bruno

Le 04/02/2011 20:07, Angus Robertson - Magenta Systems Ltd a écrit :

The bandwidth control is not very accurate and currently doesn't
work with POST requests.

I use POST requests, so it's sad for me.

Bandwidth throttling is now implemented in the HTTP Client and Server
using BUILTIN_THROTTLE, and works for both POST and GET requests.

Four demo HTTP projects have been updated with a BandwidthLimit setting,
and speed indication added to two demos.

OverbyteIcsHttpPost - HTTP client upload a file demo
OverbyteIcsHttpGet - HTTP client download a file demo
OverbyteIcsHttpTst - HTTP client demo (no files)
OverbyteIcsWebServ - HTTP server demo (needed for POST demo)

TWSocketServer also implements bandwidth throttling, so any custom server
applications using this component can easily implement throttling.

The FTP client and server already implement bandwidth throttling.

These changes are in SVN now and will be zipped overnight.

Angus


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




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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread rajesh gupta
Hi,
   I download the OverbyteIcsV6 but could not found any demo for c++ buider6

Rajesh

On Mon, Feb 7, 2011 at 10:50 PM, Fastream Technologies
ga...@fastream.comwrote:

 You may need to upgrade to v6-7. It's not difficult at all.

 SZ
 On Mon, Feb 7, 2011 at 7:18 PM, rajesh gupta rajeshgupta1...@gmail.com
 wrote:

  Hi,
 
  I examine both sample but could not find the required code to
 compress
  the buffer. I am using ICS version 5
 
 Rajesh
 
  On Mon, Feb 7, 2011 at 6:57 PM, Fastream Technologies 
 ga...@fastream.com
  wrote:
 
   As I said you need to examine the web/FTP server component code. It is
   possible.
  
   SZ
   On Mon, Feb 7, 2011 at 3:05 PM, rajesh gupta 
 rajeshgupta1...@gmail.com
   wrote:
  
Thanks
 I want to read buffer from files then compress after that
 send
   to
client . Is that model possible
   
Rajesh
   
On Mon, Feb 7, 2011 at 6:07 PM, Angus Robertson - Magenta Systems Ltd
 
an...@magsys.co.uk wrote:
   
  Ok Thanks for valuable info . Can you tell me is there any method
  in ICS to compress the data and send to socket

 Both the ICS FTP and HTTP server include options to compress data
  sent
   to
 clients, but this is done at application layer, not socket layer.

 You would need to look at the source code and adapt it for your
  server,
 it uses ZLIB.  Obviously you need to compress in a way that is
   compatible
 with the client software.

 Beware compression is CPU intensive, and compressing 1,000 streams
 at
   the
 same time will slow down your server significantly.

 Angus


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

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

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread Francois PIETTE
  I download the OverbyteIcsV6 but could not found any demo for c++ 
buider6


Not sure why you want ICS-V6. ICS-V7 is current one !
The oldest C++ Builder version supported is 2006.
The oldest Delphi version supported is 7.

You should upgrade your C++ Builder 6 to C++ Builder XE. There is a new C++ 
Builder Starter Edition which is priced at USD199. See Embarcadero website 
for details. Note: ICS has not been tested with that version but should 
work.


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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


Re: [twsocket] TWSocket Buffer

2011-02-07 Thread rajesh gupta
Hi,
  Actually I have currently on my system c++ builder 6 + ICS ver 5 . also
having many license of third party component for c++ buider6. Also My lot of
project working on that . If I change the version of c++ builder 6 then lot
of problem occurs in compiling and linking , upgrading the components . So I
want to stick with that version . Thats why I need c++builder 6 + ICS ver 6
with demo
Rajesh

On Tue, Feb 8, 2011 at 12:15 PM, Francois PIETTE
francois.pie...@skynet.bewrote:

   I download the OverbyteIcsV6 but could not found any demo for c++
 buider6


 Not sure why you want ICS-V6. ICS-V7 is current one !
 The oldest C++ Builder version supported is 2006.
 The oldest Delphi version supported is 7.

 You should upgrade your C++ Builder 6 to C++ Builder XE. There is a new C++
 Builder Starter Edition which is priced at USD199. See Embarcadero website
 for details. Note: ICS has not been tested with that version but should
 work.


 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
  http://www.overbyte.be

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

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