Re: [twsocket] HttpCli + Timeout How To??

2006-01-20 Thread Wilfried Mestdagh
Hello Mac,

   How i implement a timeout control in HttpCli...

Use async call's and a timer. when timer expires call abort, when request
is done disable timer.

   I using HttpCli in sync mode, because i need to run it in Thread..

You can use async mode in a thread as well. There is no difference, just
call HttpCli.Socket.ProcessMessages in the Execute method. Nothing more
to do.

   How i cancel httpcli get/post command? after started?

Abort;

---
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 http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] HttpCli + Timeout How To??

2006-01-19 Thread Macfly
Hi.. Friends..
   
  How i implement a timeout control in HttpCli...
  I using HttpCli in sync mode, because i need to run it in Thread..
   
  It's work fine, but in some(rare) cases httpcli freeze and no get any 
response... 
  How i cancel httpcli get/post command? after started?
   
  Thanks in advance..
   
  Mac



-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!
-- 
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


[twsocket] HttpCli + Timeout How To??

2006-01-18 Thread Macfly
Hi.. Friends..
   
  How i implement a timeout control in HttpCli...
  I using HttpCli in sync mode, because i need to run it in Thread..
   
  It's work fine, but in some(rare) cases httpcli freeze and no get any 
response... 
  How i cancel httpcli get/post command? after started?
   
  Thanks in advance..
   
  Mac


-
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
whatever.
-- 
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