[Interest] QTcpServer - One connection per port

Gopalakrishna Bhat gopalakbhat at gmail.com
Wed Jun 13 04:44:35 CEST 2012


On Wed, Jun 13, 2012 at 2:08 AM, Jason H <scorp1us at yahoo.com> wrote:

> Being on the embedded side, I can see why he wants only one client at a
> time. It coudl be that he has a serial protocol that is not going over TCP,
> where there is no idea of multiple clients.
> He should be able to set maxPendingConnections to 0. But as the docs say "but
> the operating system may still keep them in queue"
>
> There is no reason why you have to respond to a connection. You could wait
> until your 1st connection is done, letting the accepted connection wait.
> Also implement a time-out so that you'll delete accepted sockets if you
> continue to ignore them.
> Perhaps you could better describe your situation?
>
> I want to control my application remotely via TCP. Only one client should
be able to connect and control my application at a time, hence this
question.

Regards,
Gopalakrishna


-- 
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120613/43a8f85f/attachment.html>


More information about the Interest mailing list