| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Create a Server, which hold Connections permanent... |
| Jansen From: 47906 Kempen, USA Posts: 19 Member Since: 07/18/03 |
posted December 11, 2003 10:39 AM Hallo. I would like to build a server, which accept client connections and keep connected until the client disconnected. Can i build such a server with your "Socket .net"? or does your product - accept a client connection - receive data - answer - and then close the connection ? every server example i found work like this -connect -receive -send -close But i need : - connect to server - send data to this server - server receive this data - server answered to client ... - send data to this server - server receive this data - server answered to client ... for example after 2 hours --> The connection is closed by client I hope you understand my question. Thanks a lot Boris sorry, for this bad english ;-) |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 11, 2003 11:25 AM There are no such limitations with our products. You can whatever you want whenever you want. We don't close the connection unless the client does first or you do in your code. Both the Sockets for .NET kit and the SSL Tool come with many samples so I am sure you will find one that is close to what you want to do. |
| Jansen From: 47906 Kempen, USA Posts: 19 Member Since: 07/18/03 |
posted December 11, 2003 11:47 AM i have looked some samples! OK! but... for example: - client connected to the server - the server raised the event "Connection" - in this event you create an new class connection this "new builded class" is the client!? correct? and now my question? how can i receive the data within this new class? and when i received data, how can i wait for new data within this class? or send data... :-) Boris |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 11, 2003 11:53 AM Yes, the connection class is used to hold the child connection. All the sending and receiving is done inside the class. |
| Jansen From: 47906 Kempen, USA Posts: 19 Member Since: 07/18/03 |
posted December 12, 2003 2:36 AM Nice! Can i use your "ssl tool for .net" with or without an certificat for raw data? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 12, 2003 9:15 AM If you are asking if you can use Ssl Sockets for .NET to send non-secure data, the answer is yes. If you are asking if you can send Ssl data without a certificate, the answer is no. You will need a certificate (you can use the test one we provide if you want) |
| cxnoel From: Laval, QC USA Posts: 9 Member Since: 01/30/04 |
posted January 30, 2004 2:55 PM Hi, I'm doing an application similar to Jansen. My server should accept up to 3,000 connections which should stay connected all day long. I know that your socket will do the job if the server has the required ressource. But I read somewhere that your socket was using the thread pool, which is limited to 25 per processor. I also know that we can increase the thread pool to accomodate our needs, but the more we use, the more memory we need and we may end up with a significant loss of performance. So, if I want to keep my 3,000 connections alive, will the system need 3,000 thread? If so, do you have any recommendation to make it work fine? Thanks a lot. Claude |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 30, 2004 2:59 PM Yes, you would need 3000 threads. I don't have any personal advice other than to search this forum for the word "thread". I know of at least two customers who are using our .NET stuff with many threads. There are several discussions on the forum regarding the issues they had and usually resolved. |
| cxnoel From: Laval, QC USA Posts: 9 Member Since: 01/30/04 |
posted January 30, 2004 3:26 PM Hi, Thanks for this fast reply. I was still reading this forum and I effectively found lot of stuff about this, specially a link to a component to increase the thread pool on the fly: http://www.devshock.com/products/tool/ThreadPoolManager Thanks a lot. I will continue my reading! Claude |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|