[twsocket] Webserver with local connections only

2007-12-01 Thread George
Hello, I created a THttpServer that is used as a middleware between my delphi app and a flash application. I want to make sure that only me and flash will communicate each other so I want to restrict connections from outside internet or local IPs. What's the safest way to check it? Any piece of

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2007-12-01 Thread DZ-Jay
On Dec 1, 2007, at 13:36, Arno Garrels wrote: > Have you got any exception that was raised from TWSocket internaly? > I mean outside of your handler? Well, I noticed the issue because my handler raised an unhandled exception and the application then behaved in a strange manner because it was n

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2007-12-01 Thread Arno Garrels
DZ-Jay wrote: > Hello: > > In the TWSocket component, I've noticed that if an exception is thrown > within an OnDataAvailable handler > (which is triggered from TCustomWSocket.ASyncReceive() method) they > will be ignored, and only the bMore flag is set to false which will > stop the receive loop.

Re: [twsocket] Newbee writing webcam utility

2007-12-01 Thread DZ-Jay
On Dec 1, 2007, at 07:22, Bob Reeves wrote: > You just saved me a bunch of time trying to figure out something I > didn't need (Chasing Ghosts as we use to say). This prompted me to > actually run the HttpCli demo and discovered Get() already does what I > need. The Get method actually transf

Re: [twsocket] Newbee writing webcam utility

2007-12-01 Thread Bob Reeves
Hi Mike, You just saved me a bunch of time trying to figure out something I didn't need (Chasing Ghosts as we use to say). This prompted me to actually run the HttpCli demo and discovered Get() already does what I need. The Get method actually transfers the file to the local hard drive... Can'

Re: [twsocket] Newbee writing webcam utility

2007-12-01 Thread Mike Sutton
Hi Bob, BR> Thanks for the tip, looks like HttpCli will work fine and from BR> looking at the demo it will save the image in a stream buffer BR> which if I understand correctly I will then need to decode using the MimeUtils. There's no need to do any decoding on the returned buffer. Just save i