First, thanks for the fast reply. My knowledge in low-level TCP/IP isn't very good, but I don't think all data are sended in one packet in my case. I use the TOP command because a RETRIEVE, in some servers, mark e-mails as read and not list it anymore after a successful retrieve. To avoid this, I send a TOP command with a high line count, so all data are dropped with TOP command. I tested bandwidth limit using a 12 MB message, which I don't think can be send in a single TCP packet, and the bandwidth limit doesn't work at all. So, presuming that my TOP request isn't a single TCP packet operation, how I can implement bandwidth limit (or can be implemented in Synapse classes)?
----- Original Message ----- From: "Lukas Gebauer" <[EMAIL PROTECTED]> To: "Ararat Synapse" <[email protected]> Sent: Tuesday, February 13, 2007 10:18 AM Subject: Re: [Synalist] Bandwidth Limit in TPOP3Send class >> I am very impressed about Synapse. It's truly robust and stable, much >> more than Indy.Sockets Components. Good job on developing this >> library. I was using pop3send class, and I verify that bandwidth limit >> isn't working when using the "Top" method. I try to understand why and >> I note that TPOP3Send.Top method invoke the RecvString method at >> TBlockSocket class, and RecvString don't make a call to >> LimitBandwidth. > > RecvString call RecvPacket if is necessary. And RecvPacket call > lowlever RecvBuffer, what contains bandwidth limitation code. > > problem can be in packetnature of TCP connection. If I receive one > big packet, then I read all data from it without bandwidt limitation. > Bandwidth limitation is applied between two or more packets. > > So, bandwidth limitation is implemented as minimum time between two > readed packets. If you read just one packet, then you got it > immediately, but next packet can be readed after some time, defined > by setted bandwidth and size of readed datas. > > > > -- > Lukas Gebauer. > > E-mail: [EMAIL PROTECTED] > http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > synalist-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/synalist-public > _______________________________________________________ Yahoo! Mail - Sempre a melhor opção para você! Experimente já e veja as novidades. http://br.yahoo.com/mailbeta/tudonovo/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
