Re: [twsocket] Flow control

2006-11-21 Thread Francois Piette
calling Send ! -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, November 20, 2006 2:02 AM Subject: Re: [twsocket] Flow control Have you notice BufferedByteCount property

Re: [twsocket] Flow control

2006-11-21 Thread Arno Garrels
Francois PIETTE wrote: IMO, you have all the required tools ! Yes, no question, you realy have all the required tools. But you also have the required tools to write a SMTP client using TWSocket, and nevertheless there's a SMTP client in ICS. What I mean is that it won't hurt to put that in,

Re: [twsocket] Flow control

2006-11-19 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: I don't understand what you want. Obviously you can't make a TCP session running fatser than a TCP session ! But I can supply data faster than the session can support. The data might be coming from another application and I'm sending it over a

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
I don't understand what you want. Obviously you can't make a TCP session running fatser than a TCP session ! But I can supply data faster than the session can support. The data might be coming from another application and I'm sending it over a slow modem, so there must be flow control

Re: [twsocket] Flow control

2006-11-19 Thread Éric Fleming Bonilha
, to make this flow control. Ps. My data is also random... Hope I could help you Éric Fleming Bonilha Digifort - Original Message - From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] To: twsocket@elists.org Sent: Sunday, November 19, 2006 8:22 AM Subject: Re: [twsocket] Flow control

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
Use event OnDataSent to control the flow, and to avoid grow of TWSocket's send buffer. That is impossible for random data, unless an extra FIFO buffer is used externally to TWSocket. I don't understand what you mean. You can use OnDataSent to fetch more data to send. Trying to understand

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
I have been working with ICS for some time and I had the same problem as you, I have read the ICS source code and I saw that it doesn´t have this flow control on send, what they have is the internal buffer where data is stored and sent in background, so, for example, if you have a 56kbps

Re: [twsocket] Flow control

2006-11-19 Thread Angus Robertson - Magenta Systems Ltd
But you said in your case you cannot control the rate your random is arriving at (or did I misinterpret?) so what else can you do except keep buffering it, or error? My main concern is to stop the application crashing, which has happened three times this month, so I need to ignore new data

Re: [twsocket] Flow control

2006-11-19 Thread Angus Robertson - Magenta Systems Ltd
but this is what I have concluded reading the source, because the send routine always put your data into internal buffer, growing it as data is incoming. Agree. I have an Client / Server application for IP Camera Surveillance (www.digifort.com.br), and one feature of it works like this,

Re: [twsocket] Flow control

2006-11-19 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: I have four 8-channel video servers in my office (but only 15 cameras) which offer different types of streaming, one if Linux based and streams HTTP, two are Windows based and use UDP, the last is an embedded system with hardware MPEG encoding on

Re: [twsocket] Flow control

2006-11-19 Thread Angus Robertson - Magenta Systems Ltd
The problem you are having is with you software CamCollect? No, CamCollect just receives HTTP images and more rarely streams. The video servers are for something completely different, a bespoke application. The application locking up under intense CPU stress is ComCap, just moving multiple

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
I have also implemented a property called MaxSendBuffer I think this needs to go into TWSocket. The component doesn't know what to do if too much data is sent. It is the application responsability to take any appropriate action: throw data away, pause the data source, overflow the buffer to

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
I have also implemented a property called MaxSendBuffer I think this needs to go into TWSocket. Agreed. I don't. See my response to Angus. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change

Re: [twsocket] Flow control

2006-11-19 Thread Angus Robertson - Magenta Systems Ltd
Have you notice BufferedByteCount property ? Yes, I mentioned in my first message, but since it's undocumented (not mentioned in the Wiki, FAQ or Help) it took me a while to understand how the wsocket buffering works. But in this case, TWSocket is poorly designed and network issues can

Re: [twsocket] Flow control

2006-11-18 Thread Francois PIETTE
If I'm trying to send random data at a speed faster than a TCP socket can support, I don't understand what you want. Obviously you can't make a TCP session running fatser than a TCP session ! You can make it run slower but not faster ! Or maybe you want to use UDP which is faster than TCP

Re: [twsocket] Flow control

2006-11-18 Thread Angus Robertson - Magenta Systems Ltd
I don't understand what you want. Obviously you can't make a TCP session running fatser than a TCP session ! But I can supply data faster than the session can support. The data might be coming from another application and I'm sending it over a slow modem, so there must be flow control