[Interest] ThreadedFortune example extending to send message forever

Richard Moore rich at kde.org
Mon Sep 5 22:49:41 CEST 2016


On 5 September 2016 at 15:38, Viktor Engelmann <viktor.engelmann at qt.io>
wrote:

> Do you hard-code the client side port number? the same
> client-IP/client-Port/server-IP/server-Port combination cannot be used
> again within 2 minutes after a disconnect - the operating system suppresses
> that. That is to prevent late packets from the old connection to be falsely
> passed to the new connection. After 2 minutes, such packets must have timed
> out and be dropped, so the same combination can be reused safely.
>
>
>
​Whilst kind of true, that's a little misleading. You can use the re-use
address option to address this, and no bad data will be passed to the new
connection.

Rich.
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160905/36d80215/attachment.html>


More information about the Interest mailing list