[twsocket] Multiple port listening server

2008-07-15 Thread Stratus
Hello 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 ? Your help woul be greatly appreciated! Jacques Lorenzi -- To unsubscribe or change your settings for TWSocket mailing list please

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 an

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