Re: [twsocket] Multiple port listening server

2008-07-16 Thread Stratus
Thank you very much to all ! As a first try, I will go to the mono thread. Using the same -- 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] Multiple port listening server

2008-07-16 Thread Stratus
Sorry - I pressed the wrong key :-) Thank you very much to all ! As a first try, I will go to the mono-thread route. Using the same event handlers is a huge improvement to my initial idea. Angus : I will take a look at your program, that may help a lot. Thank you. Arno : I will do some extensive

Re: [twsocket] Multiple port listening server

2008-07-15 Thread Francois PIETTE
I'm trying to write a server program to listen to approx 50 ports simultaneously. Is there a more elegant way than spawning one TSocketServer per port ? Basically, this is the way to go. Don't worry too much about 50 components because the code is shared by all components. Onlythe data part

Re: [twsocket] Multiple port listening server

2008-07-15 Thread Stratus
Thank you for your answer François. Ok. Another question rises : As I have to save to disk every stream received, should I process it on a different 'save to disk' thread, or the internal TSocket buffers can cope the wait? Thank you. Basically, this is the way to go. Don't worry too much

Re: [twsocket] Multiple port listening server

2008-07-15 Thread Arno Garrels
Stratus wrote: Thank you for your answer François. Ok. Another question rises : As I have to save to disk every stream received, should I process it on a different 'save to disk' thread, or the internal TSocket buffers can cope the wait? I'm pretty sure that you do not need multiple

Re: [twsocket] Multiple port listening server

2008-07-15 Thread Angus Robertson - Magenta Systems Ltd
*Subject:* Re: [twsocket] Multiple port listening server *From:* Stratus [EMAIL PROTECTED] Ok. Another question rises : As I have to save to disk every stream received, should I process it on a different 'save to disk' thread, or the internal TSocket buffers can cope the wait? I have

Re: [twsocket] Multiple port listening server

2008-07-15 Thread Fastream Technologies
I need to add: if you want to use the advantage of multiple CPUs/cores, single thread cannot do that. On Tue, Jul 15, 2008 at 7:55 PM, Arno Garrels [EMAIL PROTECTED] wrote: Stratus wrote: Thank you for your answer François. Ok. Another question rises : As I have to save to disk every

Re: [twsocket] Multiple port listening server

2008-07-15 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: BTW, there is an experimental ICS Multi-Listen Socket Server, that will listen on an unlimited number of IPs and/or ports, Arno will tell you more. I cannot, this project died. -- Arno Garrels -- To unsubscribe or change your settings for