A MS-Windows service

I'm doing the data send in the main thread of the service (there are no other threads)

If I don't call the WSocket->PostQuitMesage then the MessageLoop runs for ever stopping my thread doing anything else. (If I don't call WSocket->MessageLoop nothing happens at all)

--
Regards

Paul Read
Partner

Follow us: @nSolve <http://www.twitter.com/nSolve>

*nSolve Ltd*
33-35 Daws Lane
London NW7 4SD
England

www.nsolve.com <http://www.nsolve.com>

Tel: +44 (0) 1993 40 20 11
Tel(US): +1 617 273 2304


On 28/07/2015 19:31, Angus Robertson - Magenta Systems Ltd wrote:
Do you recommend this procedure for a MS-Windows service? It seems
a bit of a strange concept to me
Are you writing a console application or a service?

Threads are generally unnecessary for ICS, except for some blocking functions 
like
ping or SQL and when using hundreds of sockets in the same application.

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