> I then need to be able to send HTTP messages (xml documents) back 
> from the server to the client periodically

In the GetDocument event, for your specific path/URL you need to set: 

Flags := hgWillSendMySelf;
RemoteClient.KeepAlive = TRUE;

so the server does nothing more but leaves the connection open, and start
a client timer which builds and sends the document periodically using
AnswerPage, AnswerString or AnswerStream depending on how much work you
do yourself.  

Remember that ICS is async, so the server is blocked while processing
events like GetDocument, that why you need a timer to send your responses,
not a never ending loop as in an Indy thread. 

Angus



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to