<p></p>
<blockquote>
<p>But it might be a good idea to look how in lwIP they implemented <code>MSG_PEEK</code> for their POSIX socket implementation to get a hint on that. We could extend <code>sock_tcp</code> in that direction. Since the <code>gnrc</code> port for that is currently WIP, integrating that later would be easy(er?).</p>
</blockquote>
<p>See <a href="https://git.savannah.nongnu.org/cgit/lwip.git/tree/src/api/sockets.c?h=STABLE-2_1_x#n932" rel="nofollow">https://git.savannah.nongnu.org/cgit/lwip.git/tree/src/api/sockets.c?h=STABLE-2_1_x#n932</a> ff</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16850#issuecomment-923028354">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYENPOTJIRETJIY3XA3UC5GTZANCNFSM5EABMDKA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYAOC6WVH5D2UMFWWVLUC5GTZA5CNFSM5EABMDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG4CEXAQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16850#issuecomment-923028354",
"url": "https://github.com/RIOT-OS/RIOT/pull/16850#issuecomment-923028354",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>