<p style="white-space: pre-wrap; word-wrap: break-word;">I'm not sure if it made sense to alrady "factor out" some of the core/generic osmo_prim-socket related handling and make osmo-hnodeb directly start with just being a user.  </p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm thinking roughly of the level of abstraction that libosmo-netif provides for creating a server and client around a SEQ_PACKET unix domain socket, and making the related send/receive functions already aware there is something with a primitive header passed around.  In fact, the user API could directly work with osmo_prim as we know it, hiding the serialization/deserialization inside the API.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Yes, it's easier doing it "flat" here in the application, but I'm afraid if we postpone the "generic socket" part for too long there will be ugly fall-out later when migrating due to some subtle difference here or there.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hnodeb/+/26357">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-hnodeb/+/26357">change 26357</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-hnodeb/+/26357"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hnodeb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icaabb2206d6f141d4fba47dedf71f8ec37e6257d </div>
<div style="display:none"> Gerrit-Change-Number: 26357 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 30 Nov 2021 07:49:57 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>