Re: [twsocket] TWSocket Buffer
You should upgrade your C++ Builder 6 to C++ Builder XE. 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 I understand. This is a classical situation. One in which no one should ever fall into... This is not sustainable on the long term. The more you wait to upgrade the more difficult it will be to upgrade. And one day, nothing will work anymore. when using third party components, you should only use/buy components with full source code and make sure you are able to rebuild the component (never use the prebuilt version, always rebuild everything yourself). This way, you'll be able to move forward as new compiler versions are out, even if the component editor stop making the components you are using. Upgrading component from one compiler version to the next is usually very easy. The more versions you skip, the more difficult it is to port the code to newer version. Here you have 10 years (or so, I don't remember when BCB6 was released) behind you. It will require some work to upgrade but in my opinion you MUST do it, or plan to retire soon... 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] TWSocket Buffer
Hi, Thanks for help , I will definitly switch to latest versions of both c++ builder and ICS with 2- 4 months . But presently I need urgent help for compression of data and send to socket . Actually I have frequently In memory data (buffer) that I am continuesly sending to the clients . now I want to compress that In memory data(buffer) and than send to client . In previous post some one tell me that ICS version having this features using zlib (FTP/web server applicatons). but I could not find the any code snap in ICS version 6 for compression the buffer . so please help me this with some code snap or better if I got some sample .because I presetly stick with ICS ver 5 and my application is working smoother. Rajesh On Tue, Feb 8, 2011 at 1:53 PM, Francois PIETTE francois.pie...@skynet.bewrote: You should upgrade your C++ Builder 6 to C++ Builder XE. 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 I understand. This is a classical situation. One in which no one should ever fall into... This is not sustainable on the long term. The more you wait to upgrade the more difficult it will be to upgrade. And one day, nothing will work anymore. when using third party components, you should only use/buy components with full source code and make sure you are able to rebuild the component (never use the prebuilt version, always rebuild everything yourself). This way, you'll be able to move forward as new compiler versions are out, even if the component editor stop making the components you are using. Upgrading component from one compiler version to the next is usually very easy. The more versions you skip, the more difficult it is to port the code to newer version. Here you have 10 years (or so, I don't remember when BCB6 was released) behind you. It will require some work to upgrade but in my opinion you MUST do it, or plan to retire soon... 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 -- 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
In previous post some one tell me that ICS version having this features using zlib (FTP/web server applicatons). but I could not find the any code snap in ICS version 6 for compression the buffer . Zlib was available in ICS v5. Look at icszlibhigh.pas. Function ZlibCompressStreamEx compresses a TStream, which could be a TMemoryStream. This is used in FtpCli.pas. There are numerous other zlib functions available, including compressing memory buffers, which are widely documented on the web since zlib is C. 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
[twsocket] TWSocket Buffer
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] TWSocket Buffer
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] TWSocket Buffer
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
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] TWSocket Buffer
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
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
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] TWSocket Buffer
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
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
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] TWSocket Buffer
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
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
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