do you mean return statement after my loop ? like while(x==true){..} return;

but I have while(x == true) { ... } which I want to stop when I receive
stop message from my client.


On Wed, Aug 29, 2012 at 4:44 PM, Thiago Macieira
<thiago.macie...@intel.com>wrote:

> On quarta-feira, 29 de agosto de 2012 16.19.46, Abhishek wrote:
> > Hello all,
> > I have a program in which on main thread I have TCP server to receive
> > messages and process on it.
> >  - on one specific message TCP server start one while infinite loop
> >  - to stop this loop I have another TCP message
> >
> > but while in loop I see that I am not able to receive any TCP signals.
> >
> > I tried adding QCoreApplication::processEvents()  in my loop but nothing
> > work.
> >
> > Please let me know the proper way to handle such situation.
>
> Add this:
>         return;
>
> Let your application return to the main event loop.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>      Intel Sweden AB - Registration Number: 556189-6027
>      Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Abhishek
http://thezeroth.net
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to