Skip to content

Conversation

zaneenders
Copy link

Add support for using cmsghdr.
https://forums.swift.org/t/how-to-send-cmsghdr-with-swiftnio/81017

Motivation:

Using Swift NIO for building a Wayland Client.

Modifications:

In-progress

Result:

...

@zaneenders zaneenders changed the title Add cmsghdr Add cmsghdr support Jul 23, 2025
@@ -16,9 +16,43 @@ import Atomics
import CNIOLinux
import NIOCore

public struct MetadataEnvelope {
public var data: ByteBuffer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't going to be quite right. Like AddressedEnvelope, we want a version of this that is generic, so that you can keep the metadata with the specific message.

@zaneenders
Copy link
Author

Hi @Lukasa, I'm a little lost on what to do next. Do you have any suggestions? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants