Re: [twsocket] OnDataSent

2005-03-17 Thread Piotr Hellrayzer Dałek
Hello! > Not exacly. OnDataSent is fired when TWSocket has empty his buffer. But > you are right about when it is emptied between the calls, but of course > only when messages are processed. So if Winsock buffer is NOT emptied, but TWSocket is, the event is fired anyway? -- Piotr "Hellrayzer"

Re: [twsocket] IMAP component with TWSocket

2005-04-06 Thread Piotr Hellrayzer Dałek
Hello! > Wilfried Mestdagh wrote: >> Hello, >> >> Someonw wrote already an IMAP component with TWSocket and make it free >> source available ? > I recall a thread from last year where somebody posted his plans, however > never heard something about that project again :(. > If you are planning to

Re: [twsocket] Reasonable timeout

2005-04-25 Thread Piotr Hellrayzer Dałek
Hello! > Francois PIETTE wrote: >>> I just wonder how other programs can provide a >>> user defined TCP timeout that appears to overrule the system setting or >>> is something like that just a fake? >> >> I've searched on MSDN and found that setsockopt has those options: >> SO_RCVTIMEO Receives t

[twsocket] Any alternatives to multithreading?

2005-04-25 Thread Piotr Hellrayzer Dałek
Hi! Okay, this is discussed few times a year, and probably FAQ got something about, but.. The problem is simple. I didn't realized that when user has slow CPU and fast LAN[1], my HCM can't handle that well - looks like hung, and downloads slower than it's possible. I won't overcome the downloadin

Re: [twsocket] Any alternatives to multithreading?

2005-04-28 Thread Piotr Hellrayzer Dałek
Hello! >> Is there *any* way to slow down >> ICS, so message queue overflow won't occur so often? > Unless you use UDP or wsoSIO_RCVALL option, there is no reason to have a > message queue overflow. > Using TCP, if you don't read data as fast as the sender is able to send, > the protocol is desig

Re: [twsocket] Any alternatives to multithreading?

2005-04-30 Thread Piotr Hellrayzer Dałek
Hello! >> so message queue overflow won't occur so often? > What exacly flows over ? I mean, on what do you see this ? Application gets unresponsive. Simply refuses to react for mouse clicks, keypresses, anything except network operations. On my home P120 it shows up, when I download many 1-5kB

Re: [twsocket] Datetime in mail headers

2005-05-11 Thread Piotr Hellrayzer Dałek
Hello! > Do I need the MIME-Version, Content-Type and Content-Transfer-Encoding > also or can it be left out ? There will be only plain text and never an > attach. AFAIR if you won't put them in header, the default values should be assumed (respectively: 1.0, text/plain; charset="US-ASCII", 7bit)

Re: [twsocket] Datetime in mail headers

2005-05-13 Thread Piotr Hellrayzer Dałek
Hello! > Hello Piotr, >> If you're using US-ASCII, consider using Content-Transfer-Encoding: 7bit. > Yes at the moment. But later there will be mails with French and maybe > German characters in it. So I assume I need the: >'Content-Transfer-Encoding: quoted-printable' > Am I right

[twsocket] Protocol 6 (=TCP) not supported by TCustomSocksWSocket

2005-06-17 Thread Piotr Hellrayzer Dałek
Hi! In TCustomSocksWSocket.Connect: procedure TCustomSocksWSocket.Connect; begin [..] if LowerCase(FProtoStr) <> 'tcp' then begin RaiseException('tcp is the only protocol supported thru socks server'); Exit; end; [..] Let's say that someone has entered 6 in place of TCP

[twsocket] Why exceptions?

2005-06-30 Thread Piotr Hellrayzer Dałek
Hi! I just wonder - why we have to use exceptions and exception handling so often? I mean, why exceptions, not function results? For example: procedure TNntpCli.List(DestStream : TStream); begin if FState <> nntpReady then raise NntpException.Create('Not ready for LIST'); FDataS

[twsocket] [TMimeDec] Boundary detection optimization

2005-07-31 Thread Piotr Hellrayzer Dałek
Hi! There's possible optimization. Since all MIME boundaries start with "--" (=$2D2D), we could check whether FCurrentData points to two dashes instead of copying whole data line, switching to lowercase and then comparing: procedure TMimeDecode.ProcessWaitBoundary; { ##ERIC } var t : In

[twsocket] [TMimeDec] Preamble and Epilogue

2005-07-31 Thread Piotr Hellrayzer Dałek
Hi! TMimeDec does NOT ignore MIME preamble and epilogue, so it fails to decode correctly complex multipart message from RFC 2049 Appendix A. Specifically, when it sees ending boundary ("--boundary--") it starts another part. Disabling preamble parsing as text/plain is very simple, just have to ch

Re: [twsocket] [TMimeDec] Preamble and Epilogue

2005-08-14 Thread Piotr Hellrayzer Dałek
Hello! > Piotr, > Can you provide an enhanced unit with your fixes ? > Remember that the fixes should not break existing code ! I'm on vacation right now, and that's why I respond so slowly. I'll apply my fixes in the meantime, and send complete unit to you. Thanks for your patience. :) -- P

Re: [twsocket] [TMimeDec] Beta version to test

2005-08-28 Thread Piotr Hellrayzer Dałek
Hello! >> Piotr "Hellrayzer" Dalek (Author of ICS-Based Hellcore Mailer - an >> Outlook Express killer) made interesting changes to the mimedecode >> component. It is work a beta test. So I made it available from the ICS >> download page at my website. > Sorry, does not work here, the second t

Re: [twsocket] [TMimeDec] Beta version to test

2005-08-29 Thread Piotr Hellrayzer Dałek
Hello! >> Piotr "Hellrayzer" Dalek (Author of ICS-Based Hellcore Mailer - an >> Outlook >> Express killer) made soem interesting changes to the mimedecode >> component. >> It is work a beta test. So I made it available from the ICS download >> page >> at >> my website. > Forgot to tell about the

Re: [twsocket] [TMimeDec] Beta version to test

2005-08-29 Thread Piotr Hellrayzer Dałek
Hello! >> Send me one (or all) of these messages (or better post them somewhere >> and give me the url) and I'll check it out. > Not a single MIME message in my mailbox decoded the last attachment > correctly, I don't suppose the issue is very hard to reproduce. I'll > relay the two examples