rust-netlink / netlink-proto

Other
8 stars 14 forks source link

Add ability to create Connection from existing socket #18

Open a1ien opened 1 year ago

a1ien commented 1 year ago

This will be useful for example if we create socket in another process and use technique like snedmsg to pass socket descriptor between process. The expected Api probably like new_connection_from_socket<S>(socket: S) where S: sys::AsyncSocket ... What you think about this idea?

The use case for this feature. We have application that live in different namespace. And we can create netlink socket in different namespace and pass created socket to another application.