Re: [twsocket] TnEmulVT: Number Rows - Important!!!!
Francois Piette wrote: Yes, seem to be some communication problems. I think he is looking for the telnet escape sequence to notify the server that the terminal size has changed. Maybe it is in the telnet rfc, I'm not sure. If that's the question, I don't know the answer. I was even not aware that such esc sequence existed ! Maybe it is this one. Telnet Window Size Option ftp://ftp.rfc-editor.org/in-notes/rfc1073.txt -- Sly This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multithreaded http...
Wilfried Mestdagh wrote: you are ritght because working with float is more CPU. But GetTickCount roll over every 49 day... So without extra code the timeout can fail if it is (by Murphy's law) just on the particular moment.. It's not that much more code. NewTime := GetTickCount(); if NewTime OldTime then ElapsedTime := NewTime - OldTime else ElapsedTime := NewTime + (High(Cardinal) - OldTime); { Do something with ElapsedTime } OldTime := NewTime; -- Sly This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] getting the plain text part of a mail
There are other cases. I have some example messages from a mailing list that are multipart/mixed with four parts where each part is text/plain and no HTML. So, the robust solution here is if it is multipart, to examine the content type of each part individually and see if it is text/plain. Sly Wilfried Mestdagh wrote: Hello, I need to get plain texp part of mail, even if it for example sent in HTML. Easy to do with mimedecode component. However I have some questions: 1. It seems easy to check if mail is in plain text or HTML. Just look to the header Content-Type: witch start with eather 'multipart' or with 'text/plain'. Is this correct and always the case ? 2. If multipart HTML then part 1 seems to be the plain text part of the message. Is always plain text sent with all mail readers if sending HTML, and is this always the first part, or do I have to look to the part header (as with message header) ? -- Rgds, Wilfried http://www.mestdagh.biz -- This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be