<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: UlafBogor</title>
    <description>The latest articles on Forem by UlafBogor (@nvaro).</description>
    <link>https://forem.com/nvaro</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3686028%2Fbf11a3c6-d19f-48fd-9e5c-be8eb3ab74cb.png</url>
      <title>Forem: UlafBogor</title>
      <link>https://forem.com/nvaro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/nvaro"/>
    <language>en</language>
    <item>
      <title>I try to create a C++ program that receives data and continuously process it, is it required that I use async/threading?</title>
      <dc:creator>UlafBogor</dc:creator>
      <pubDate>Tue, 30 Dec 2025 12:41:52 +0000</pubDate>
      <link>https://forem.com/nvaro/i-try-to-create-a-c-program-that-receives-data-and-continuously-process-it-is-it-required-that-i-3022</link>
      <guid>https://forem.com/nvaro/i-try-to-create-a-c-program-that-receives-data-and-continuously-process-it-is-it-required-that-i-3022</guid>
      <description>&lt;p&gt;I created a Websocket server in Python that receives data (maximum 300 bytes) from a browser, and in python when creating server/client you always use asyncio or threading, so you would be able to listen continuously while at the same time data is processed or handling other clients.&lt;/p&gt;

&lt;p&gt;My question is it required in C++ too?&lt;br&gt;
I try to make the C++ program get this data, process it, and store it, do I need to use multithreading/async for it too?&lt;/p&gt;

&lt;p&gt;Bonus question&lt;br&gt;
I on the fence between setting a separate python socket server and a socket C++ client to send the data &lt;br&gt;
Or using shared memories&lt;/p&gt;

&lt;p&gt;I was told shared memories is harder, and is more for if I need to share a lot of data very fast&lt;br&gt;
But still want your opinion &lt;/p&gt;

</description>
      <category>python</category>
      <category>cpp</category>
      <category>interprocess</category>
      <category>socket</category>
    </item>
  </channel>
</rss>
