Re: [twsocket] TWSocket.Send timing

2008-05-15 Thread info2004
Wilfried, Dan was correct. The time I noted was for Send to return, not for the data to actually be sent. Given the 300ms for Send to return, is this to be expected? If it is, then I will look to optimise elsewhere. But it just seems likely that something is a miss - wrong option setting

Re: [twsocket] TWSocket.Send timing

2008-05-15 Thread Wilfried Mestdagh
Hello Andy, Dan was correct. The time I noted was for Send to return, not for the data to actually be sent. Sorry then I have given you a wrong answer. Given the 300ms for Send to return, is this to be expected? No it should return immediatly, the function is async. Are you absolutely sure

Re: [twsocket] TWSocket.Send timing

2008-05-15 Thread info2004
Wilfried, ErmOops. etc. My debug function to log the timestamps was the culprit. I should have just grabbed the time before, then the time after and done the math. What I actually did was review my log file with timestamps in it. This was the cause of the delay. Using the time before and

Re: [twsocket] TWSocket.Send timing

2008-05-15 Thread Angus Robertson - Magenta Systems Ltd
My debug function to log the timestamps was the culprit. I should have just grabbed the time before, then the time after and done the math. Using real time to calculate duration is very inefficient, it's much better to use GetTickCount which is milliseconds running time since Windows booted

Re: [twsocket] TWSocket.Send timing

2008-05-15 Thread Wilfried Mestdagh
My debug function to log the timestamps was the culprit. oke then all is fine :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] HTTP...

2008-05-15 Thread zayin
Hello, I have a server and I want to send a jpeg to the client upon request. This image is dynamic. I am using AnswerStream and that is all working great. Then I decided I also wanted some text to go before the image. I could not determine how to send text and an image with the same reply.

Re: [twsocket] HTTP...

2008-05-15 Thread DZ-Jay
zayin wrote: Hello, I have a server and I want to send a jpeg to the client upon request. This image is dynamic. I am using AnswerStream and that is all working great. Then I decided I also wanted some text to go before the image. I could not determine how to send text and an image

Re: [twsocket] HTTP...

2008-05-15 Thread DZ-Jay
DZ-Jay wrote: What you want to do is send a multi-part MIME payload in the body of your HTTP response. You have to set the content-type to multipart/form-data. For more information, check this page: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 dZ. Please

Re: [twsocket] HTTP...

2008-05-15 Thread zayin
Thanks. I will look into it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DZ-Jay Sent: Thursday, May 15, 2008 3:15 PM To: ICS support mailing Subject: Re: [twsocket] HTTP... DZ-Jay wrote: What you want to do is send a multi-part MIME payload in

Re: [twsocket] HTTP...

2008-05-15 Thread Francois PIETTE
I have a server and I want to send a jpeg to the client upon request. This image is dynamic. I am using AnswerStream and that is all working great. Then I decided I also wanted some text to go before the image. I could not determine how to send text and an image with the same reply. So, I