On Tue, Jun 12, 2012 at 3:47 PM, Andre Haupt <an...@bitwigglers.org> wrote:
> On Tue, Jun 12, 2012 at 02:44:54PM +0530, Gopalakrishna Bhat wrote: > > 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? > The docs for QTcpServer state: > > "Clients may still able to connect after the server has reached its > maximum number of pending connections (i.e., QTcpSocket can still emit > the connected() signal). QTcpServer will stop accepting the new > connections, but the operating system may still keep them in queue." > > I guess that this is the problem that bites you. > Yeah, that is the reason. I get that signal. Any way we can get my usecase to work? Regards, Gopalakrishna
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest