<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt5 discard udp datagram without reading.]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Context:<br />
If a server receive two much data, its strategy is to discard the packets.</p>
<p dir="auto">Question:<br />
Is it possible to discard a UDP datagram and still get notified for the next ones?<br />
<strong>The goal is to minimze the memory needed by an application to face offending packets.</strong></p>
<p dir="auto">I would like to avoid to have to read them (because I will discard them anyway). But this should only concern one -offending- udp datagram.</p>
<p dir="auto">Alternatively, is reading 1 byte sufficient?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/64897/qt5-discard-udp-datagram-without-reading</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 20:34:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/64897.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Mar 2016 16:42:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt5 discard udp datagram without reading. on Mon, 07 Mar 2016 20:46:01 GMT]]></title><description><![CDATA[<p dir="auto">ooops.. Missed that line.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.qt.io/post/316966</link><guid isPermaLink="true">https://forum.qt.io/post/316966</guid><dc:creator><![CDATA[JulienD]]></dc:creator><pubDate>Mon, 07 Mar 2016 20:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Qt5 discard udp datagram without reading. on Mon, 07 Mar 2016 20:32:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">From <a href="http://doc.qt.io/qt-5/qudpsocket.html#readDatagram" target="_blank" rel="noopener noreferrer nofollow ugc">QUdpSocket::readDatagram</a>'s documentation setting maxSize to 0 will discard the datagram.</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/316962</link><guid isPermaLink="true">https://forum.qt.io/post/316962</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 07 Mar 2016 20:32:10 GMT</pubDate></item></channel></rss>