On Tue, Jun 12, 2012 at 8:20 PM, BRM <bm_witn...@yahoo.com> wrote: > > From: Gopalakrishna Bhat <gopalakb...@gmail.com> > > >Hi, > > > > > >I am trying to use QTcpServer to accept connection from only one client > at a time, but i'm not able to do so. > > > > > >I tried setting setMaxPendingConnections to one but then > also waitForConnected on the second client returned true. I want > waitForConnected to return true only for the first client. > > > > > >Any I idea what I am doing wrong? > > > Well, the majority of your question has been responded to, but as I have a > similar use-case, I'll just note that I simply let it accept all the > incoming connections, and then in my handler of the connections I checked > if I had one already; if I did, I closed it; it I didn't then the > application accepted it. > > $0.02 > > Thanks for the help. I will try it.
Regards, Gopalakrishna -- My blog http://gkbhat.blogspot.com
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest